Skip to main content

get_lang

Function get_lang 

Source
pub fn get_lang() -> Arc<LocaleState> ⓘ
Expand description

Retrieves the current language state.

The returned Arc is a snapshot: a later set_lang does not change it. Lookups made by t! read the language directly and do not go through this function.