Skip to main content

parse_langid

Function parse_langid 

Source
pub fn parse_langid(raw: &str) -> Option<LanguageIdentifier>
Expand description

Normalize raw OS / user locale strings into a LanguageIdentifier.

Accepts pt_BR.UTF-8, pt-BR, en_US.utf8, etc.