pub fn set_lang(lang: LanguageIdentifier)Expand description
Updates the runtime language for the application.
This operation is atomic. Subsequent calls to t! will immediately reflect
the new language.
§Arguments
lang- The newLanguageIdentifierto set (e.g., parsed from “fr-FR”).