Skip to content

UI problem with translation - fallbackLng not working #36

Description

@nitram147

I encountered this problem during usage of Chrome browser, Firefox works fine (reason mentioned below).

Browser is sending following Accept-Language request header "sk-SK;sk" (for comparison Firefox is only sending "sk").

i18n tries to fetch "sk-SK" and fail with the following error (because node backend return some default html instead of json - the locales/sk-SK/translation.json path don't exists):
image

Next it tries to use "sk" language and succeed. However the language swapping select stay with "EN" option selected:
image

So in case you want to swap your language to English, you have to select Slovak/Swedish language (swapping select pretends to be checked on "EN" option) and then select "EN" option. This can confuse users to think that there isn't English localization available.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions