Skip to main content

get_locale

Function get_locale 

Source
pub fn get_locale() -> String
Expand description

Return the OS’s preferred locale as a BCP-47 tag (e.g. "en-GB", "nb-NO"). The renderer formats the pause-picker date with Intl using this. The WebView’s own locale is unreliable — a non-localised app falls back to en-US even when the OS region differs — so it’s read natively.