CldrLocale class final

The Unicode CLDR locale that a list of BCP 47 language tags resolves to, as the default functions resolve it.

It lets a package of further functions, such as package:messageformat_datetime, choose its locale data as :number does: data keyed by the CLDR cldrVersion locales finds its locale and the ancestors it inherits from in chain, and formats digits in the same numbering system.

Constructors

CldrLocale(List<String> tags)
The locale of the first of tags that CLDR has data for, or the root locale und if none has.
factory

Properties

chain → List<String>
The CLDR locale with data and its ancestors, ending with und, such as [en-GB, en-001, en, und].
no setter
digits → List<String>
The digits zero to nine of numberingSystem.
no setter
dir → MessageDirection
The character direction of tag, which the default functions give the values they format.
no setter
hashCode → int
The hash code for this object.
no setterinherited
hourCycle → String?
The value of the hc Unicode extension keyword of the requested tag, such as h23, if it has one.
no setter
numberingSystem → String
The numbering system, such as latn or arab.
no setter
region → String?
The region subtag of the requested tag, if it has one, in upper case.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tag → String
The requested tag whose locale this is, or the first one (und if there is none) when no tag has data: the locale of a formatted value.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited