We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using fallback for translation, choice still uses the current locale for pluralForm, causing wrong rule being used.
fallback
choice
locale
pluralForm
> Lang.messages['en.test'] = ':count box|:count boxes' > Lang.setFallback('en') > Lang.setLocale('pl') > Lang.choice('test', 1) "1 box" > Lang.choice('test', 2) "2 boxes" > Lang.choice('test', 10) undefined
The text was updated successfully, but these errors were encountered:
@nanaya thank you for reporting this issue. I will take a look and make a fix.
Sorry, something went wrong.
Added: broken test.
c464013
This broken test was added thanks to @nanaya as reported in #64.
99b54b2
2259777
Hey @nanaya! I'm glad to tell you that the issue that you reported was fixed: https://github.com/rmariuzzo/Lang.js/releases/tag/v1.1.12
No branches or pull requests
When using
fallback
for translation,choice
still uses the currentlocale
forpluralForm
, causing wrong rule being used.The text was updated successfully, but these errors were encountered: