Skip to content

setLang has invalid assumptions #1551

@razor-1

Description

@razor-1

Hi, setLang assumes that language codes are always 2 characters (either alone or in a format along with a separator and region).

My applications are localized into many different languages, some of which are not contained in ISO 639-1 and are only found in ISO 639-3 (i.e. they have 3-letter codes). An interesting one came up today when someone using Jamaican Creole (jam) was shown text in Japanese (ja).

I'm not asking for translations into these less common languages, just that setLang won't make the wrong decisions based on the assumption that the only codes in use are 2 letters.

Thank you

Metadata

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