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
navigator.language
"en-US"
This looks to be an issue w/ how you're detecting the language: https://github.com/coderifous/jquery-localize/blob/master/src/jquery.localize.coffee#L20
A simple fix to this line would be:
JS
$.defaultLanguage = normaliseLang(navigator.languages? navigator.languages[0] : (navigator.language || navigator.userLanguage));
CS
$.defaultLanguage = normaliseLang(if navigator.languages then navigator.languages[0] else navigator.language or navigator.userLanguage)
I'll open a pull-request once I've had a chance to test further!
The text was updated successfully, but these errors were encountered:
Merged. Thank you.
Sorry, something went wrong.
No branches or pull requests
navigator.language
Result:
"en-US"
This looks to be an issue w/ how you're detecting the language:
https://github.com/coderifous/jquery-localize/blob/master/src/jquery.localize.coffee#L20
A simple fix to this line would be:
JS
CS
I'll open a pull-request once I've had a chance to test further!
The text was updated successfully, but these errors were encountered: