locale_select
A simple library for selecting the user's locale preferences for various ICU4X modules, such as calendar, datetime and decimals.
This library is specific to ICU4X, but there are many Rust APIs with a similar focus. Here are some that I could find, and what they seem to do differently:
simple-locale
: very close to this crate, but doesn't use ICU4X librarieslocale_settings
: unmaintained(?) version of simple-locale::settings
sys_locale
: single locale instead of per-categoryutf8-locale
, locale-config
: categories are less strongly typedgettextrs::setlocale()
: gettext
bindings, this function can query the locale by setting the locale to a null string