type
Locale
src
@Serializable { simple=true }
const class Locale : Obj
Locale models a cultural language and region/country. See Localization for details.
Also see Env.locale
and Pod.locale
.
constructors
fields
en |
Constant for the English Locale "en" |
---|
methods
country |
Get the country/region as an uppercase ISO 3166 two letter code. |
---|---|
cur |
Get the current thread's locale. |
equals |
Equality is based on the normalized toStr format. |
hash |
Compute hash code based on normalized toStr format. |
lang |
Get the language as a lowercase ISO 639 two letter code. |
setCur |
Set the current thread's locale. |
toStr |
Return string representation |
use |
Run the specified function using this locale as the actor's current locale. |