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

Version 4.0 locale doesn't recognize xx-XX format from navigator.language and defaults to en-US #17269

Closed
MonkeyMaster opened this issue Nov 13, 2023 · 0 comments · Fixed by #17270

Comments

@MonkeyMaster
Copy link

  1. defaultOptions.locale = {
    value: navigator.language || "en-US",
    Value is ru-RU

  2. GenericL10n.*#generateBundles paths:
    ru: "ru/viewer.ftl"

  3. GenericL10n.#createBundle
    const path = paths[lang]
    It expects only ru here not ru-RU

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant