From 43f2822e7749c80df5dd01e3e0108f5a3ed0e7b1 Mon Sep 17 00:00:00 2001 From: lxm <1274844347@qq.com> Date: Tue, 21 Oct 2025 20:53:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=95=B0=E4=B8=AA=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E5=9B=BD=E5=88=AB=E9=80=89=E6=8B=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/core/translations/language/en_us.dart | 12 ++++++++++++ lib/core/translations/language/zh_cn.dart | 12 ++++++++++++ lib/modules/login/controllers/login_controller.dart | 11 +++++++++++ .../controllers/translation_controller.dart | 2 +- 4 files changed, 36 insertions(+), 1 deletion(-) diff --git a/lib/core/translations/language/en_us.dart b/lib/core/translations/language/en_us.dart index 3541bb74a..d391ef32d 100644 --- a/lib/core/translations/language/en_us.dart +++ b/lib/core/translations/language/en_us.dart @@ -66,6 +66,7 @@ const Map enUS = { "estonian": "Estonian", "serbian": "Serbian", "icelandic": "Icelandic", + "arabic": "Arabic", // 登录页 "welcome": "Welcome", @@ -962,6 +963,17 @@ const Map enUS = { "东帝汶": "East Timor", "斐济": "Fiji", "所罗门群岛": "Solomon Islands", + "刚果民主共和国": "Democratic Republic of the Congo", + "安哥拉": "Angola", + "苏丹": "Sudan", + "马尔代夫": "Maldives", + "不丹": "Bhutan", + "摩纳哥": "Monaco", + "圣马力诺": "San Marino", + "牙买加": "Jamaica", + "巴哈马": "Bahamas", + "巴布亚新几内亚": "Papua New Guinea", + "萨摩亚": "Samoa", // 翻译模块 // 翻译主页 diff --git a/lib/core/translations/language/zh_cn.dart b/lib/core/translations/language/zh_cn.dart index cfee20434..d56fccb27 100644 --- a/lib/core/translations/language/zh_cn.dart +++ b/lib/core/translations/language/zh_cn.dart @@ -66,6 +66,7 @@ const Map zhCN = { "estonian": "爱沙尼亚语", "serbian": "塞尔维亚语", "icelandic": "冰岛语", + "arabic": "阿拉伯语", // 登录页 "welcome": "欢迎使用", @@ -882,6 +883,17 @@ const Map zhCN = { "东帝汶": "东帝汶", "斐济": "斐济", "所罗门群岛": "所罗门群岛", + "刚果民主共和国": "刚果民主共和国", + "安哥拉": "安哥拉", + "苏丹": "苏丹", + "马尔代夫": "马尔代夫", + "不丹": "不丹", + "摩纳哥": "摩纳哥", + "圣马力诺": "圣马力诺", + "牙买加": "牙买加", + "巴哈马": "巴哈马", + "巴布亚新几内亚": "巴布亚新几内亚", + "萨摩亚": "萨摩亚", // 翻译模块 // 翻译主页 (translation_view.dart) diff --git a/lib/modules/login/controllers/login_controller.dart b/lib/modules/login/controllers/login_controller.dart index a159b0269..92ec5be0e 100644 --- a/lib/modules/login/controllers/login_controller.dart +++ b/lib/modules/login/controllers/login_controller.dart @@ -165,6 +165,17 @@ class LoginController extends GetxController { {'name': '东帝汶', 'code': '+670', 'flag': '🇹🇱'}, {'name': '斐济', 'code': '+679', 'flag': '🇫🇯'}, {'name': '所罗门群岛', 'code': '+677', 'flag': '🇸🇧'}, + {'name': '刚果民主共和国', 'code': '+243', 'flag': '🇨🇩'}, + {'name': '安哥拉', 'code': '+244', 'flag': '🇦🇴'}, + {'name': '苏丹', 'code': '+249', 'flag': '🇸🇩'}, + {'name': '马尔代夫', 'code': '+960', 'flag': '🇲🇻'}, + {'name': '不丹', 'code': '+975', 'flag': '🇧🇹'}, + {'name': '摩纳哥', 'code': '+377', 'flag': '🇲🇨'}, + {'name': '圣马力诺', 'code': '+378', 'flag': '🇸🇲'}, + {'name': '牙买加', 'code': '+1-876', 'flag': '🇯🇲'}, + {'name': '巴哈马', 'code': '+1-242', 'flag': '🇧🇸'}, + {'name': '巴布亚新几内亚', 'code': '+675', 'flag': '🇵🇬'}, + {'name': '萨摩亚', 'code': '+685', 'flag': '🇼🇸'}, ]; // 初始化默认选择的国家代码 diff --git a/lib/modules/translation/controllers/translation_controller.dart b/lib/modules/translation/controllers/translation_controller.dart index fc02d93a8..274d585d4 100644 --- a/lib/modules/translation/controllers/translation_controller.dart +++ b/lib/modules/translation/controllers/translation_controller.dart @@ -52,7 +52,7 @@ class TranslationController extends GetxController with WidgetsBindingObserver { late final FloatingWindowManager _floatingWindowManager; // ==================== 悬浮窗相关 ==================== - final isFloatingWindowEnabled = false.obs; + final isFloatingWindowEnabled = false.obs; // 悬浮窗状态 // ==================== ASR统计相关 ==================== DateTime? _asrSessionStartTime; // ASR会话开始时间