Bootstrap from registry - part 6

This commit is contained in:
mdecimus
2026-02-01 19:02:09 +01:00
parent 0398a9d28e
commit 262aed19af
67 changed files with 1976 additions and 2580 deletions

View File

@@ -133,7 +133,7 @@ impl Language {
pub fn from_iso_639(code: &str) -> Option<Self> {
hashify::map!(
code.split_once('-').map(|c| c.0).unwrap_or(code).as_bytes(),
code.split_once(['-', '_']).map(|c| c.0).unwrap_or(code).as_bytes(),
Language,
"en" => Language::English,
"es" => Language::Spanish,