mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-20 07:03:16 +00:00
fix lang
This commit is contained in:
1 parent
ddf06f54c1
commit
8669b57011
1 file changed
+1
-1
+1
-1
@@ -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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user