mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-21 05:33:21 +03:00
fix lang
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user