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

If browser gives ru (not ru-RU) the default language is used #82

Open
ekDanilova opened this issue Nov 19, 2018 · 0 comments
Open

If browser gives ru (not ru-RU) the default language is used #82

ekDanilova opened this issue Nov 19, 2018 · 0 comments

Comments

@ekDanilova
Copy link

Hi! Hope someone may help me, please. I have a very simple one-page website.
I connected this library: used your l10n.js, added locales.ini with:
[*] @import url(data.en.properties) [ru] @import url(data.ru.properties)`

and two files data.en.properties and data.ru.properties.

The situation is that If navigator.language is [ru-RU] it is translated as [ru]. And it's great! English works fine too.
But, if navigator.language is [ru] it uses the default language, which is [en].
Absolutely don't know what's wrong :(
Dream of some help...

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

No branches or pull requests

1 participant