Cldr v2.16.1-rc.0 API Reference
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.
The Cldr.Chars
protocol mirrors the
String.Chars
protocol but localises
the output. It is intended to be
drop-in replacement for String.Chars
.
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/...
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 there is an a parse error in a language tag
Exception raised when there is an invalid time format type.
Exception raised when a language tag cannot be parsed (there is unparsed content).
Parses a CLDR language tag (also referred to as locale string).
Functions to parse and normalize locale names into a structure
locale represented by a Cldr.LanguageTag
.
Exception raised when there is no default backend configured
Exception raised when no configured locale matches the provided "Accept-Language" header
Parses the accept-language header if one is available and sets
conn.private[:cldr_locale]
accordingly. The locale can
be later retrieved by Cldr.Plug.AcceptLanguage.get_cldr_locale/1
Sets the Cldr and/or Gettext locales derived from the accept-language header, a query parameter, a url parameter, a body parameter or the session.
Rules Base Number Formatting Configuration management.
Exception raised when there is no RBNF for a locale.
Compiles substituation formats that are of the form "{0} something {1}" into a token list that allows for more efficient parameter substituation 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 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
.