API Reference Cldr v2.35.1

modules

Modules

Cldr provides the core functions to retrieve and manage the CLDR data that supports formatting and localisation.

Tokenizer and parser for HTTP Accept-Language header values as defined in rfc2616.

Exception raised when there no valid language tag in an Accept-Language header.

Exception raised when the there are more than one timezones for a locale

The Cldr.Chars protocol mirrors the String.Chars protocol but localises the output. It is intended to be drop-in replacement for String.Chars.

Provider configuration support functions for ex_cldr.

Returns the localised display name for a CLDR struct (locale, unit, currency)

Exception raised when there is an error in the compiling of a number format.

Exception raised when there is an error in the formatting of a number/list/...

Implements a macro to define a CLDR-based Gettext plural module

Provides functions for installing locales.

Exception raised when there is an invalid date format type.

Exception raised when there is an invalid datetime format type.

Exception raised when a language is invalid

Exception raised when there is an a parse error in a language tag

Exception raised when a script is invalid

Exception raised when a territory is invalid

Exception raised when there is an invalid time format type.

Exception raised when a language variant is invalid

Represents a language tag as defined in rfc5646 with extensions "u" and "t" as defined in BCP 47.

Exception raised when a language tag cannot be parsed (there is unparsed content).

Parses a CLDR language tag (also referred to as locale string).

Implements a sigil_l/2 macro to constructing t:Cldr.LanguageTag structs.

Defines the struct for the BCP 47 t extension.

Defines the struct for the BCP 47 u extension.

Functions to parse and normalize locale names into a structure locale represented by a Cldr.LanguageTag.

Provides a public interface to read the raw JSON locale files and return the CLDR data in a consistent format.

Exception raised when there is no default backend configured

Exception raised when no configured locale matches the provided "Accept-Language" header

Exception raised when the there are more no parent locale

Defines the plural rule implementation modules. The functions in this module generates code to implement the plural rules of CLDR.

Exception raised when there is no RBNF for a locale.

Implements parsing for RFC5646 language tags with BCP47 extensions.

Compiles substitution formats that are of the form "{0} something {1}" into a token list that allows for more efficient parameter substitution at runtime.

Functions to map between the CLDR short time zone code and the IANA timezone names.

Exception raised when the backend module is unknown or not a backend module

Exception raised when an attempt is made to use a calendar that is not known. in Cldr.

Exception raised when there is an invalid currency code.

Exception raised when an attempt is made to use a locale that is not configured in Cldr. Cldr.known_locale_names/1 returns the locale names known to Cldr.

Exception raised when an attempt is made to use a locale not configured in Cldr. Cldr.known_locale_names/1 returns the locale names known to Cldr.

Exception raised when the measurement system is invalid.

Exception raised when an attempt is made to use a number system that is not known in Cldr. Cldr.Number.number_system_names/0 returns the number system names known to Cldr.

Exception raised when an attempt is made to use a number system type that is not known in Cldr. Cldr.Number.number_system_types/0 returns the number system types known to Cldr.

Exception raised when the configured OTP app is not known

Exception raised when there are no plural rules for a locale or language.

Exception raised when there is an invalid territory code.

Exception raised when an attempt is made to use a unit that is not known. in Cldr.

Provides the core functions to retrieve and manage the CLDR data that supports formatting and localisation.

Parses HTTP Accept-Language header values as defined in rfc2616.

Backend module that provides functions to define new locales and display human-readable locale names for presentation purposes.

Implements cardinal plural rules for numbers.

Implements ordinal plural rules for numbers.

Implements plural rules for ranges