Localize Playground

🇺🇸 English

Language, script, territory

Canonical locale

You entered en-Latn-US; it canonicalized to en.
en
Localize.Locale.LocaleDisplay.display_name("en", locale: "en")
English

Unicode -u extensions

Each extension adds a -u-KEY-VALUE segment to the locale. Leave a field blank to omit it.

Calendar -u-ca
Calendar system used for date interpretation — e.g. Gregorian, Buddhist, Hebrew.
Currency format -u-cf
Format style for currencies: :standard or :account (parentheses for negatives).
Currency -u-cu
Default currency for money formatting (ISO 4217 code).
Emoji presentation -u-em
emoji / text / default — how ambiguous glyphs render.
First day of week -u-fw
Which weekday starts a week — sun / mon / tue ... / sat.
Hour cycle -u-hc
Clock style: h11 / h12 / h23 / h24.
Line break -u-lb
loose / normal / strict line-breaking style.
Word break -u-lw
normal / breakall / keepall / phrase word-break style.
Measurement system -u-ms
metric / ussystem / uksystem.
Measurement unit -u-mu
Unit of length used in unit-aware messages.
Numbers -u-nu
Numeral system for digits — latn / arab / thai / hans …
Region override -u-rg
Override the region for region-specific data (e.g. en-u-rg-gbzzzz).
Subdivision -u-sd
Region subdivision identifier (shown next to its localized name).
Suppress segmentation -u-ss
none / standard — suppress word-segmentation exceptions.
Time Zone -u-tz
Short UN/LOCODE-style time-zone identifier (shown next to its IANA/Olson name).

Unicode -u collation extensions

Collation-specific knobs that tune string sorting. These share the -u- namespace with the fields above.

Sort Order -u-co
Sort-order variant — e.g. phonebook, pinyin, stroke, traditional.
Ignore Symbols Sorting -u-ka
Strip accents while sorting — noignore / shifted.
Uppercase/Lowercase Ordering -u-kf
Put uppercase or lowercase first — upper / lower / false.
Script/Block Reordering -u-kr
Custom script-reordering list.
Sorting Strength -u-ks
level1 / level2 / level3 / level4 / identical.
Variable top -u-kv
Script below which characters are variable — punct / space / symbol / currency.
Reversed Accent Sorting -u-kb
Sort accents right-to-left — true / false.
Case Sensitive Sorting -u-kc
Include case differences — true / false.
Normalized Sorting -u-kh
Distinguish hiragana vs katakana — true / false.
Normalized Sorting -u-kk
Unicode-normalize strings before sorting — true / false.
Numeric Sorting -u-kn
Treat digit runs as numbers — true / false.