Provides information about locale-specific information including:
A locale is identified by a locale tag, as specified by IETF BCP 47, which contains:
en
, es
, or
ca
,Latn
, or Cyrl
,AU
,
MX
, or ES
, andFields are separated by the character -
. For example:
en
, ca
, en-AU
, es-MX
.
A Locale
instance may be obtained for a given tag, by
calling locale()
:
assert (exists au = locale("en-AU"));
The system locale is also available.
The Locale
object provides information about the
Language
, Currency
and Formats
of the locale it
represents, along with information about the names of
other languages and
currencies in that locale.
Packages | |
ceylon.locale |
Dependencies | ||
ceylon.collection | 1.3.3 | |
ceylon.time | 1.3.3 |
Values | |
dayMonthYear | Source Codeshared Order dayMonthYear The day/month/year Order. |
monthDayYear | Source Codeshared Order monthDayYear The month/day/year Order. |
systemLocale | Source Codeshared Locale systemLocale Returns a See also system.locale |
yearMonthDay | Source Codeshared Order yearMonthDay The year/month/day Order. |
Functions | |
locale | Source Codeshared Locale? locale(String tag) |
Classes | |
Currency | Source Codeshared sealed Currency Localized information about the currency with the given
ISO 4217 currency |
DateField | Source Codeshared DateField Enumerates the fields of a formatted |
Formats | Source Codeshared sealed Formats Date, time, currency, and numeric formats for a certain
|
Language | Source Codeshared sealed Language Localized information about the language associated with
the given locale |
Locale | Source Codeshared sealed Locale Aggregates localized information associated with a certain locale, including:
The locale also provides access to associated localized
message bundles via |