Skip to main content

default_locale

Function default_locale 

Source
pub fn default_locale() -> String
Expand description

Resolve a default BCP-47 locale from the LANG environment variable (e.g. zh_TW.UTF-8zh-TW). Falls back to en-US.