Crate current_locale[−][src]
Expand description
current_locale
current_locale is a library for obtaining a user’s current locale from the operating system. The language code corresponding to the user’s current locale is a BCP47 (IETF) compliant.
One example use is printing the user’s current locale to stdout:
let current_locale = current_locale::current_locale()?;
println!("The current locale is: {}", current_locale);
Structs
An error that may occur when looking up the current locale.
Enums
A kind of error that may occur when looking up the current locale.
Functions
Returns the current locale of the process or an error.