Skip to content

setLang works with "fr" but not "fr-FR" #1472

Closed
@Heshyo

Description

I use navigator.language which can return values likes "en", "en-US", "fr", "fr-FR", "es-ES", etc.

It seems calling setLang using the 2 letter value like "fr" works, but not the 5 letter value like "fr-FR". There should be a fallback from "fr-FR" to "fr", "es-ES" to "es", ...Basically just keeping the 1st 2 letters should fix it.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions