Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Creating an "exists" function to check for existence of translation keys... #88

Merged
merged 2 commits into from Apr 18, 2013

Conversation

Projects
None yet
2 participants
Contributor

gcko commented Mar 22, 2013

Refactored the _translate method, creating a _find method that can also be called to check for existence fo the key.

Motivation:
This is useful when you are using keys on the client that are based on some string property in an object and you want it to fall back on a default key in case no translation exists.

Owner

jamuhl commented Mar 23, 2013

nice quality PR...added you as contributor (if ok for you) feel free to merge this to master.

Owner

jamuhl commented Apr 15, 2013

you already pushed this to master - or want me to merge it?

@jamuhl jamuhl merged commit d7aa122 into i18next:master Apr 18, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment