Skip to main content

preferred_language

Function preferred_language 

pub fn preferred_language() -> Option<String>
Expand description

The language this desktop speaks, as a BCP 47 tag: the one the person chose in Settings, or else the locale the device runs in ([settings_store::appearance::preferred_language]). Every surface and app resolves its language, and the language of the dates it formats, from this one answer.