Crate current_locale

Crate current_locale 

Source
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§

LocaleError
An error that may occur when looking up the current locale.

Enums§

ErrorKind
A kind of error that may occur when looking up the current locale.

Functions§

current_locale
Returns the current locale of the process or an error.