This PR updates the Rust, Python, and CLI interfaces to accept format_locale and time_format_locale options to set Vega's locale configuration.
Closes #133
In addition to accepting locale objects, the d3-format and d3-time-format locale files are bundled and it's possible to specify locales by name (e.g. it-IT).
There are also two new Python function: get_format_locale and get_time_format_locale. These return the named locale object as a Python dictionary. These are provided to allow other Python libraries, Vega-Altair in particular, to accept locales by name and look up their object value with vl-convert.
This PR updates the Rust, Python, and CLI interfaces to accept
format_locale
andtime_format_locale
options to set Vega's locale configuration.Closes #133
In addition to accepting locale objects, the d3-format and d3-time-format locale files are bundled and it's possible to specify locales by name (e.g.
it-IT
).There are also two new Python function:
get_format_locale
andget_time_format_locale
. These return the named locale object as a Python dictionary. These are provided to allow other Python libraries, Vega-Altair in particular, to accept locales by name and look up their object value with vl-convert.