Function language_fallback

Source
pub fn language_fallback(language: &str) -> Option<String>
Expand description

Get a fallback language if one is available in our dictionaries.

http://www.unicode.org/reports/tr35/#Locale_Inheritance

We use the normal truncation inheritance. This function needs aliases including scripts for languages with multiple regions available.