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 use of sprintf as shortcutFunction when first argument falsey #453

Merged
merged 1 commit into from
Nov 12, 2015

Conversation

benjyblack
Copy link
Contributor

Do not overwrite first sprintf argument when it is falsey. Also,
fix bad falsey check in _translate.

Resolves #451

Do not overwrite first sprintf argument when it is falsey. Also,
fix bad falsey check in _translate.

Resolves i18next#451
@benjyblack
Copy link
Contributor Author

Not very familiar with your build process so forgive me if there's copied code where there shouldn't be.

@jamuhl
Copy link
Member

jamuhl commented Nov 11, 2015

will be merged for next version...thanks for providing the fix

jamuhl added a commit that referenced this pull request Nov 12, 2015
Fix use of sprintf as shortcutFunction when first argument falsey
@jamuhl jamuhl merged commit 43ff6ff into i18next:master Nov 12, 2015
@jamuhl
Copy link
Member

jamuhl commented Nov 12, 2015

will be in 1.11.1

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.

sprintf does not work with shortcutFunction and falsey first argument
2 participants