Skip to content

set default territory #232

Answered by kipcole9
woylie asked this question in Q&A
May 13, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

TLDR; no automated way to do this.

Longer version: If the user requests en, then the locale will be interpreted as en-US as you have found. This is typical in CLDR - the default territory is that which has the largest number of native speakers of the given language. Sometimes this is surprising since it means that pt is interpreted as pt-BR because there are more native Portuguese speakers in Brazil than there are in Portugal.

Secondly, the formats (number, dates, times, units, ...) are linked to the locale (en-SE for example), not en or SE. There are some situations where it's possible to override the territory code. For example, en-u-rg-SEzzzz. But that does not affect locale formats li…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@woylie
Comment options

Answer selected by woylie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #231 on May 13, 2024 00:38.