This commit is contained in:
rustdesk 2022-06-10 18:43:53 +08:00
parent ddf06f54c1
commit 8669b57011

View File

@ -33,7 +33,7 @@ pub fn translate_locale(name: String, locale: &str) -> String {
lang = locale
.split("-")
.next()
.map(|x| x.split("_").last().unwrap_or_default())
.map(|x| x.split("_").next().unwrap_or_default())
.unwrap_or_default()
.to_owned();
}