Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix fallback lng option during translations #399

Merged
merged 1 commit into from
Jun 23, 2015

Conversation

qraynaud
Copy link
Contributor

The documentation state in features that you can give the fallbackLng option during translation but it does not seem to work. I noticed calls to toLanguages with 2 arguments (lng & fallbackLng) but this function did not seem to handle this case properly so I added some code to do it.

Careful: the option fallbackLng still does not work when the lng option is not provided during initialization. I added a hack in my code to provide it in all cases because I did not have the time to fix this case too.

@jamuhl
Copy link
Member

jamuhl commented Jun 12, 2015

will merge this...wasn't to aware that one can pass fallbackLng on calling translation....might be some addition by contribution.

@qraynaud
Copy link
Contributor Author

thanks ! any ETA?

@jamuhl
Copy link
Member

jamuhl commented Jun 15, 2015

might get a new version out this or next week. stay tuned.

jamuhl added a commit that referenced this pull request Jun 23, 2015
fix fallback lng option during translations
@jamuhl jamuhl merged commit 9c21d1c into i18next:master Jun 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants