Skip to main content

detect_system_language

Function detect_system_language 

Source
pub fn detect_system_language() -> AzString
Expand description

Detect the system language as a BCP 47 tag.

Checks LANGUAGE, LC_ALL, LC_MESSAGES, and LANG in priority order. Returns "en-US" if detection fails. For runtime detection via native OS APIs, the platform discovery in azul-dll overrides this.