Cldr v0.0.8 Cldr.Consolidate
Consolidates all locale-specific information from the CLDR repository into one locale-specific file.
Summary
Functions
Consolidates known locales as defined by Cldr.known_locales/0
Consolidates one locale
Consolidates all available CLDR locale-specific json files into a set of locale-specific json files, one per locale
Returns the directory where the locale-specific json files are stored
Returns the directory where the consolidated Cldr
content is stored
Returns the directory where the downloaded CLDR repository files are stored
Identifies the top level keys in the consolidated locale file
Functions
Consolidates known locales as defined by Cldr.known_locales/0
.
Consolidates one locale.
locale
is any locale defined byCldr.all_locales/0
Consolidates all available CLDR locale-specific json files into a set of locale-specific json files, one per locale.
Also formats non-locale-specific CLDR data that is core to Cldr
operation.
Returns the directory where the consolidated Cldr
content is stored.
We store the consolidated files in the ./priv/cldr
directory which
is part of the github repo and therefore available for download.
However only the βenβ locale is packaged in hex and any other configured locales will be downloaded when the client app is compiled.
Identifies the top level keys in the consolidated locale file.
These keys represent difference dimensions of content in the CLDR repository and serve three purposes:
To structure the content in the locale file
To provide a rudimentary way to validate that some json represents a valid locale file
- To all conditional inclusion of CLDR content at compile time to help
manage memory footprint. This capability is not yet built into
Cldr
.