pub fn detect(
flag: Option<&str>,
env: &dyn Fn(&str) -> Option<String>,
saved: Option<&str>,
system: Option<&str>,
) -> LangExpand 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.