4.11. kink/LOCALE

Provides locale specific data.

4.11.1. LOCALE.for(Lang_tag)

LOCALE.for returns a locale val which matches the language tag best.

It is not guaranteed that “lang_tag” method of the result returns the same str as Lang_tag.

4.11.2. type locale

A locale is a set of parameters used for software internationalization specific to a combination of language, region and other variants.

4.11.2.1. Locale.lang_tag

“lang_tag” method returns thes str of the language tag of the locale.

The result is a syntactically well-formed IETF BCP47 language tag. It is not guaranteed that subtags are registered in IANA Language Subtag Registry.

4.11.2.2. Locale.group_sep

“group_sep” method returns a str which separates groups in the integral part in the locale.

4.11.2.3. Locale.decimal_sep

“decimal_sep” method returns a str which separates the integral part and the fractional part in the locale.

4.11.2.4. X == Y

Two locales are equal when the language tags of them are equal.

4.11.2.5. Locale.repr

`repr` returns a str such as "(locale ja-JP)".

4.11.3. LOCALE.is?(Val)

LOCALE.is? returns whether Val is a locale val.

4.11.4. LOCALE.root

LOCALE.root returns the empty locale which is neutral to any language or region.

4.11.5. LOCALE.default

LOCALE.default returns the locale which is default for the runtime.