fix lang
This commit is contained in:
parent
ddf06f54c1
commit
8669b57011
@ -33,7 +33,7 @@ pub fn translate_locale(name: String, locale: &str) -> String {
|
|||||||
lang = locale
|
lang = locale
|
||||||
.split("-")
|
.split("-")
|
||||||
.next()
|
.next()
|
||||||
.map(|x| x.split("_").last().unwrap_or_default())
|
.map(|x| x.split("_").next().unwrap_or_default())
|
||||||
.unwrap_or_default()
|
.unwrap_or_default()
|
||||||
.to_owned();
|
.to_owned();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user