Package org.pepstock.charba.client.intl
Contains classes in order to use the ECMAScript Internationalization API, which provides language sensitive number formatting, and date and time formatting.
- Author:
- Andrea "Stock" Stocchero
-
Interface Summary Interface Description IsLocaleItem Interface to map the locale item in order to get the name and search the items against the name instead of the value. -
Class Summary Class Description CLocale Unicode represents locales with a string, called a locale identifier.
The locale identifier consists of a language identifier and extension tags.
Language identifiers are the core of the locale, consisting of language, script, and region subtags.
Additional information about the locale is stored in the optional extension tags.
Extension tags hold information about locale aspects such as calendar type, clock type, and numbering system type.
A Unicode BCP 47 locale identifier consists of
a language code (optionally) a script code, (optionally) a region (or country) code (optionally) one or more variant codes (optionally) one or more extension sequences
See MDN page for more details.
LOCALE auto recognition
Thelocale
client property can be specified using either a meta tag, as part of the query string in the host page’s URL or from default platform locale.
If all cases are specified, the query string takes precedence, then meta data and finally the navigator language.CLocaleBuilder DateTimeFormat The object is a constructor for objects that enable language-sensitive date and time formatting.
See MDN for more details.DateTimeFormatOptions The object configures a date time formatter.
See MDN for more details.DateTimeFormatOptions.DateTimeFormatOptionsFactory Creates a date time format options by a native object and a default values instance.FormatPart Result ofNumberFormat.formatToParts(double)
which is containing the locale-specific tokens from which it possible to build custom strings while preserving the locale-specific parts.
See MDN for more details.NumberFormat The object is a constructor for objects that enable language sensitive number formatting.
See MDN for more details.NumberFormatOptions The object configures a number formatter.
See MDN for more details.NumberFormatOptions.NumberFormatOptionsFactory Creates a number format options by a native object and a default values instance. -
Enum Summary Enum Description Language Enumerates the language identifiers which can be used to create and manage locale.Region Enumerates the region or country identifiers which can be used to create and manage locale.Script Enumerates the standard codes for script identification which can be used to create and manage locale.