Crate env_preferences

Source
Expand description

§env_preferences

env_preferences is a crate to retrieve system locale and preferences for Apple, Linux & Windows systems.

It provides functionality to fetch preferred locales from the user’s operating system and parse them lossily to an ICU4X Locale.

It also retrieves preferences for Calendar & TimeZone

Modules§

apple
parse
Parsing functionality for various popular operating systems
posix
windows

Enums§

LocaleError
An error encountered while either retrieving or parsing a system locale
ParseError
An error encountered while either retrieving or parsing a system locale
RetrievalError
An error encountered while retrieving the system locale

Functions§

get_locales_lossy
List the user’s available locales as ICU4X Locales, ordered by preference.
get_raw_locales
List the user’s available locales as the platform-provided Strings, ordered by preference.