Skip to content

2-letter code insufficient for locale #3

@ghost

Description

For some major languages, 2-letter code is inadequate/insufficient.

Consider the Chinese language, which has 2 scripts, simplified and traditional. Those would be described as 5-character locale code zh-cn, zh-sg (simplified) and zh-tw, zh-hk (traditional).

It would be nice if your module could work with 5-character locale codes and some kind of user-defined locale-to-locale mapping.

You can see an example of my method I wrote in PHP Language Detector.

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