This commit is contained in:
RustDesk 2023-02-14 14:45:31 +08:00 committed by GitHub
parent 8a68974f4f
commit b65f940a25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,7 +81,7 @@ pub fn translate_locale(name: String, locale: &str) -> String {
if lang.is_empty() {
// zh_CN on Linux, zh-Hans-CN on mac, zh_CN_#Hans on Android
if locale.starts_with("zh") {
lang = (if locale.contains("TW") { "tw" } else { "cn" }).to_owned();
lang = (if locale.contains("tw") { "tw" } else { "cn" }).to_owned();
}
}
if lang.is_empty() {