Skip to main content

normalize_locale

Function normalize_locale 

Source
pub fn normalize_locale(locale: &str) -> String
Expand description

Normalize a locale identifier to lowercase with hyphens.

Converts en_US to en-us, pt-BR to pt-br, etc.