Skip to main content

detect

Function detect 

Source
pub fn detect(
    flag: Option<&str>,
    env: &dyn Fn(&str) -> Option<String>,
    saved: Option<&str>,
    system: Option<&str>,
) -> Lang
Expand description

Chooses the language, the first that exists: --lang, TABA_CLI_LANG, ui.language, the system’s locale (LC_ALL, LC_MESSAGES, LANG, then the operating system’s) and en-US.