I've made several changes to some localization crates I did earlier and unified them into rialight_localization
(GitHub). Now:
- A few more common language codes that omit region will auto fill their region. For example,
en
maps toen-US
. - Many
<S: ToString>
bounds have been replaced bys: impl AnyStringType
. - Naming convention changes (now the main localization structure is called
LocaleBundle
). -
LocaleBundleLoadMethod::FileSystem
now usesrialight::filesystem
, which means you can now use, for example, anapp:
URL to refer to application installation resources.
Little things:
- I could not find data for retrieving native name from countries or regions. Currently only international name can be retrieved from countries or regions.
There's still no support for currency, collation, plurals and number formatting. I think the Fluent crate supports these, but I'm not sure how I could make use of Fluent in this crate.