Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

Fix lang detection for zh-TW (#7326)

XLionfccdc8ca1f7b
diff --git a/src/lang.rs b/src/lang.rs
index 74bd62ff6..d44e4215c 100644
--- a/src/lang.rs
+++ b/src/lang.rs
@@ -92,7 +92,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") {
+ lang = (if locale.contains("TW") {
"zh-tw"
} else {
"zh-cn"