Registry / utility / sys-locale

sys-locale

JSON →
library0.3.2rscratesunverified

Small and lightweight library to obtain the active system locale.

# Cargo.toml [dependencies] sys-locale = "0.3.2"
INSTALL
IMPORT
SIG · SYS-LOCALE
S
sys-locale
utilityrustv0.3.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

get_locale
use sys_locale::get_locale;

Get the current system locale string.

use sys_locale::get_locale; fn main() { match get_locale() { Some(locale) => println!("System locale: {}", locale), None => println!("Could not determine locale"), } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
sys-locale — cargo add sys-locale · libregistry