Cldr.Install.install_locale_name
You're seeing just the function
install_locale_name
, go back to Cldr.Install module for more information.
Download the requested locale from github into the client application's cldr data directory.
locale
is any locale returned byCldr.known_locale_names/1
options
is a keyword list. Currently the only supported option is:force
which defaults tofalse
. Iftruthy
the locale will be installed or re-installed.
The data directory is typically priv/cldr/locales
.
This function is intended to be invoked during application compilation when a valid locale is configured but is not yet installed in the application.
An https request to the master github repository for Cldr
is made
to download the correct version of the locale file which is then
written to the configured data directory.