Cldr v0.0.8 API Reference
Modules
Cldr provides functions to localise numbers, currencies, lists and dates/times to an appropriate locale as defined by the CLDR data maintained by the ICU
Consolidates all locale-specific information from the CLDR repository into one locale-specific file
Currency functions for CLDR
Defines a Plural module for Gettext that uses the Cldr
plural rules
Support for installing locales on demand
Cldr
incudes patterns that enable list to be catenated together
to form a grammatically correct language construct for a given locale
Parse and process locale strings as defined by Unicode
Functions to transform maps
Takes the number
part of the locale map and transforms the formats
into a more easily processable structure
Cldr formatting for numbers
Manages the rules for a cardinal number
Manages the collection of number patterns defined in Cldr
Number Pattern Compiler
Format a number in a :long
format for a :currency
Formats a number according to a format definition, either a standard format defined for a locale or a user defined format supplied as a parameter
- If the rule set includes a master rule (and the number was passed in as a double), use the master rule. (If the number being formatted was passed in as a long, the master rule is ignored.)
Formats a number in a :short
format. This is best explained by some
examples
Math helper functions for number formatting
Manages the rules for ordinal numbers
Macro to define plural rule methods on a module
Generate functions from CLDR plural rules that can be used to determine which pularization rule to be used for a given number
Tranformations on the parse tree returned from parsing plural rules
String helper functions
Functions to manage the symbol definitions for a locale and number system
A number system defines the digits (if they exist in this number system) or or rules (if the number system does not have decimal digits)
Transliteration for digits and separators
Rules Base Number Formatting
Rules Base Number Formatting Configuration management
Functions to implement the ordinal rule-based-number-format rules of CLDR
Functions to implement the ordinal rule-based-number-format rules of CLDR
Tokenizer and Parser for RBNF rules
Functions to implement the spellout rule-based-number-format rules of CLDR
Mix task to consolidate the cldr data into a set of files, one file per CLDR locale
Installs the cldr core data and configured locales into the application. By default it installs into the ./priv/cldr directory
Exceptions
Exception raised when an attempt is made to use a locale not congfigured
in Cldr
. Cldr.known_locales/0
returns the locale names known to Cldr
Exception raised when an attempt is made to use a locale not congfigured
in Cldr
. Cldr.known_locales/0
returns the locale names known to Cldr