mirror of
https://github.com/rustdesk/rustdesk
synced 2026-05-24 09:28:23 +00:00
fix lang
This commit is contained in:
parent
ddf06f54c1
commit
8669b57011
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue