Browse Source

refactor(translation): 简化翻译功能相关文案和界面

统一将"同声传译"改为"翻译",优化多语言文案
移除翻译中心相关冗余代码和未使用的翻译键
简化翻译中间层界面,移除不必要的描述文本
newdev_shunjiawei
lxm 12 months ago
parent
commit
90bdfe1abd
  1. 2
      lib/core/translations/language/ar_sa.dart
  2. 2
      lib/core/translations/language/bg_bg.dart
  3. 2
      lib/core/translations/language/cs_cz.dart
  4. 2
      lib/core/translations/language/da_dk.dart
  5. 2
      lib/core/translations/language/de_de.dart
  6. 2
      lib/core/translations/language/el_gr.dart
  7. 12
      lib/core/translations/language/en_us.dart
  8. 2
      lib/core/translations/language/es_es.dart
  9. 2
      lib/core/translations/language/et_ee.dart
  10. 2
      lib/core/translations/language/fi_fi.dart
  11. 2
      lib/core/translations/language/fr_fr.dart
  12. 2
      lib/core/translations/language/hi_in.dart
  13. 2
      lib/core/translations/language/hr_hr.dart
  14. 2
      lib/core/translations/language/hu_hu.dart
  15. 2
      lib/core/translations/language/id_id.dart
  16. 2
      lib/core/translations/language/is_is.dart
  17. 2
      lib/core/translations/language/it_it.dart
  18. 2
      lib/core/translations/language/ja_jp.dart
  19. 2
      lib/core/translations/language/ko_kr.dart
  20. 2
      lib/core/translations/language/lt_lt.dart
  21. 2
      lib/core/translations/language/lv_lv.dart
  22. 2
      lib/core/translations/language/ms_my.dart
  23. 2
      lib/core/translations/language/nb_no.dart
  24. 2
      lib/core/translations/language/nl_nl.dart
  25. 2
      lib/core/translations/language/pl_pl.dart
  26. 2
      lib/core/translations/language/pt_pt.dart
  27. 2
      lib/core/translations/language/ro_ro.dart
  28. 2
      lib/core/translations/language/ru_ru.dart
  29. 2
      lib/core/translations/language/sk_sk.dart
  30. 2
      lib/core/translations/language/sl_si.dart
  31. 2
      lib/core/translations/language/sr_rs.dart
  32. 2
      lib/core/translations/language/sv_se.dart
  33. 2
      lib/core/translations/language/th_th.dart
  34. 2
      lib/core/translations/language/tl_ph.dart
  35. 2
      lib/core/translations/language/tr_tr.dart
  36. 2
      lib/core/translations/language/uk_ua.dart
  37. 2
      lib/core/translations/language/vi_vn.dart
  38. 12
      lib/core/translations/language/zh_cn.dart
  39. 4
      lib/core/translations/language/zh_hk.dart
  40. 2
      lib/modules/explore/controllers/explore_controller.dart
  41. 4
      lib/modules/home/views/home_view.dart
  42. 20
      lib/modules/translation/controllers/translation_controller.dart
  43. 2
      lib/modules/translation/middleware/controllers/translation_middleware_controller.dart
  44. 56
      lib/modules/translation/middleware/views/translation_middleware_view.dart
  45. 39
      lib/modules/translation/views/translation_view.dart

2
lib/core/translations/language/ar_sa.dart

@ -119,7 +119,7 @@ const Map<String, String> arSA = {
"aiAssistant": "مساعد الذكاء الاصطناعي الشامل",
"aiAssistantInfo":
"مستشار حصري على مدار 24 ساعة للإجابة على الأسئلة وتقديم الاقتراحات",
"simultaneousInterpretation": "الترجمة الفورية",
"interpretation": "الترجمة الفورية",
"simultaneousInterpretationInfo":
"ترجمة فورية لأكثر من 80 لغة، سفر خالٍ من القلق",
"aiCompanion": "رفيق العائلة",

2
lib/core/translations/language/bg_bg.dart

@ -120,7 +120,7 @@ const Map<String, String> bgBG = {
"topAiExperiences": "Топ AI преживявания",
"aiAssistant": "AI асистент",
"aiAssistantInfo": "24-часов личен консултант за въпроси и съвети",
"simultaneousInterpretation": "Едновременен превод",
"interpretation": "Едновременен превод",
"simultaneousInterpretationInfo": "Превод в реално време за 80+ езика",
"aiCompanion": "Родителско придружаване",
"aiCompanionInfo": "Разбира ви и предлага топло придружаване",

2
lib/core/translations/language/cs_cz.dart

@ -121,7 +121,7 @@ const Map<String, String> csCZ = {
"topAiExperiences": "Nejlepší AI zážitky",
"aiAssistant": "AI asistent",
"aiAssistantInfo": "24hodinový osobní poradce pro otázky a rady",
"simultaneousInterpretation": "Simultánní tlumočení",
"interpretation": "Simultánní tlumočení",
"simultaneousInterpretationInfo": "Překlad v reálném čase pro 80+ jazyků",
"aiCompanion": "Rodičovské doprovázení",
"aiCompanionInfo": "Rozumí vám a poskytuje vřelé doprovázení",

2
lib/core/translations/language/da_dk.dart

@ -120,7 +120,7 @@ const Map<String, String> daDK = {
"topAiExperiences": "Top AI oplevelser",
"aiAssistant": "AI assistent",
"aiAssistantInfo": "24-timers personlig rådgiver til spørgsmål og råd",
"simultaneousInterpretation": "Simultantolkning",
"interpretation": "Simultantolkning",
"simultaneousInterpretationInfo": "Realtidsoversættelse for 80+ sprog",
"aiCompanion": "Forældre-barn ledsagelse",
"aiCompanionInfo": "Forstår dig og giver varm ledsagelse",

2
lib/core/translations/language/de_de.dart

@ -123,7 +123,7 @@ const Map<String, String> deDE = {
"topAiExperiences": "Top KI-Erfahrungen",
"aiAssistant": "KI-Assistent",
"aiAssistantInfo": "24/7 persönlicher Berater für Fragen und Ratschläge",
"simultaneousInterpretation": "Simultandolmetschen",
"interpretation": "Simultandolmetschen",
"simultaneousInterpretationInfo": "Echtzeitübersetzung für 80+ Sprachen",
"aiCompanion": "Eltern-Kind-Begleitung",
"aiCompanionInfo": "Versteht Sie und bietet warme Begleitung",

2
lib/core/translations/language/el_gr.dart

@ -121,7 +121,7 @@ const Map<String, String> elGR = {
"topAiExperiences": "Κορυφαίες εμπειρίες AI",
"aiAssistant": "Βοηθός AI",
"aiAssistantInfo": "24ωρος προσωπικός σύμβουλος για ερωτήσεις και συμβουλές",
"simultaneousInterpretation": "Ταυτόχρονη διερμηνεία",
"interpretation": "Ταυτόχρονη διερμηνεία",
"simultaneousInterpretationInfo":
"Μετάφραση σε πραγματικό χρόνο για 80+ γλώσσες",
"aiCompanion": "Γονική συνοδεία",

12
lib/core/translations/language/en_us.dart

@ -122,7 +122,7 @@ const Map<String, String> enUS = {
"topAiExperiences": "Top AI Experiences",
"aiAssistant": "AI Assistant",
"aiAssistantInfo": "24/7 personal consultant for questions and advice",
"simultaneousInterpretation": "Real-time Interpretation",
"interpretation": "Translation",
"simultaneousInterpretationInfo": "Real-time translation for 80+ languages",
"aiCompanion": "Parent-child bonding",
"aiCompanionInfo": "Understands you and provides warm companionship",
@ -170,7 +170,7 @@ const Map<String, String> enUS = {
"allRoundAssistantInfo": "Helps solve various problems",
"simultaneousTranslation": "Real-time Translation",
"faceToFaceTranslation": "Face-to-face Translation",
'audioVideoTranslation': 'Audio/Video Translation',
'audioVideoTranslation': 'Multimedia Translation',
'callTranslation': 'Call Translation',
"simultaneousTranslationInfo": "Instant translation for 80+ languages",
"aiGirlfriend": "Parent-child bonding",
@ -977,14 +977,6 @@ const Map<String, String> enUS = {
// 翻译模块
// 翻译中间层 (translation_middleware_view.dart)
"translationCenter": "Translation Center", // 翻译中心
"translationCenterDescription": "Select the translation feature you need", // 选择您需要的翻译功能
"realtimeTranslation": "Realtime Translation", // 实时翻译
"realtimeTranslationDescription": "Real-time voice translation, supports multiple languages", // 实时语音翻译,支持多种语言
"translationHistoryTitle": "Translation History", // 翻译历史
"translationHistoryDescription": "View historical translation records", // 查看历史翻译记录
"translationStatsTitle": "Translation Statistics", // 翻译统计
"translationStatsDescription": "View translation usage statistics", // 查看翻译使用统计信息
// 翻译主页
"translationHistory": "Translation History",

2
lib/core/translations/language/es_es.dart

@ -121,7 +121,7 @@ const Map<String, String> esES = {
"topAiExperiences": "Mejores experiencias de IA",
"aiAssistant": "Asistente de IA",
"aiAssistantInfo": "Consejero personal 24 horas para preguntas y consejos",
"simultaneousInterpretation": "Interpretación simultánea",
"interpretation": "Interpretación simultánea",
"simultaneousInterpretationInfo":
"Traducción en tiempo real para más de 80 idiomas",
"aiCompanion": "Compañía parental",

2
lib/core/translations/language/et_ee.dart

@ -120,7 +120,7 @@ const Map<String, String> etEE = {
"topAiExperiences": "Parimad AI kogemused",
"aiAssistant": "AI assistent",
"aiAssistantInfo": "24-tunnine isiklik nõustaja küsimuste ja nõuannete jaoks",
"simultaneousInterpretation": "Simultaantõlge",
"interpretation": "Simultaantõlge",
"simultaneousInterpretationInfo": "Reaalajas tõlge 80+ keele jaoks",
"aiCompanion": "Vanema saatjaskond",
"aiCompanionInfo": "Mõistab sind ja pakub sooja seltskonda",

2
lib/core/translations/language/fi_fi.dart

@ -120,7 +120,7 @@ const Map<String, String> fiFI = {
"aiAssistant": "Kattava AI-avustaja",
"aiAssistantInfo":
"Yksinomainen 24/7-konsultti, vastaa kysymyksiin, antaa ehdotuksia",
"simultaneousInterpretation": "Simultaanitulkkaus",
"interpretation": "Simultaanitulkkaus",
"simultaneousInterpretationInfo":
"Reaaliaikainen käännös yli 80 kielelle, huolettomat ulkomaanmatkat",
"aiCompanion": "Perheen seuralainen",

2
lib/core/translations/language/fr_fr.dart

@ -123,7 +123,7 @@ const Map<String, String> frFR = {
"topAiExperiences": "Meilleures expériences IA",
"aiAssistant": "Assistant IA",
"aiAssistantInfo": "Conseiller personnel 24/7 pour questions et conseils",
"simultaneousInterpretation": "Interprétation simultanée",
"interpretation": "Interprétation simultanée",
"simultaneousInterpretationInfo": "Traduction en temps réel pour 80+ langues",
"aiCompanion": "Accompagnement parent-enfant",
"aiCompanionInfo": "Vous comprend et offre un accompagnement chaleureux",

2
lib/core/translations/language/hi_in.dart

@ -118,7 +118,7 @@ const Map<String, String> hiIN = {
"topAiExperiences": "शीर्ष एआई अनुभव",
"aiAssistant": "एआई ऑल-इन-वन असिस्टेंट",
"aiAssistantInfo": "24/7 विशेष सलाहकार, सवालों के जवाब देना, सुझाव देना",
"simultaneousInterpretation": "एक साथ व्याख्या",
"interpretation": "एक साथ व्याख्या",
"simultaneousInterpretationInfo":
"80+ भाषाओं में रीयल-टाइम अनुवाद, चिंता मुक्त विदेश यात्रा",
"aiCompanion": "परिवार का साथी",

2
lib/core/translations/language/hr_hr.dart

@ -120,7 +120,7 @@ const Map<String, String> hrHR = {
"aiAssistant": "Sveobuhvatni AI asistent",
"aiAssistantInfo":
"Ekskluzivni konzultant 24/7, odgovara na pitanja, daje prijedloge",
"simultaneousInterpretation": "Simultano prevođenje",
"interpretation": "Simultano prevođenje",
"simultaneousInterpretationInfo":
"Prijevod u stvarnom vremenu na više od 80 jezika, bezbrižna putovanja u inozemstvo",
"aiCompanion": "Obiteljski pratilac",

2
lib/core/translations/language/hu_hu.dart

@ -122,7 +122,7 @@ const Map<String, String> huHU = {
"aiAssistant": "Mindenre kiterjedő AI asszisztens",
"aiAssistantInfo":
"Exkluzív 24/7 tanácsadó, válaszol a kérdésekre, javaslatokat tesz",
"simultaneousInterpretation": "Szinkrontolmácsolás",
"interpretation": "Szinkrontolmácsolás",
"simultaneousInterpretationInfo":
"Valós idejű fordítás több mint 80 nyelven, gondtalan külföldi utazások",
"aiCompanion": "Családi társ",

2
lib/core/translations/language/id_id.dart

@ -119,7 +119,7 @@ const Map<String, String> idID = {
"aiAssistant": "Asisten AI Serba Guna",
"aiAssistantInfo":
"Konsultan eksklusif 24/7, menjawab pertanyaan, memberikan saran",
"simultaneousInterpretation": "Interpretasi Simultan",
"interpretation": "Interpretasi Simultan",
"simultaneousInterpretationInfo":
"Terjemahan waktu nyata untuk 80+ bahasa, perjalanan ke luar negeri tanpa khawatir",
"aiCompanion": "Teman Keluarga",

2
lib/core/translations/language/is_is.dart

@ -119,7 +119,7 @@ const Map<String, String> isIS = {
"aiAssistant": "Alhliða gervigreindar-aðstoðarmaður",
"aiAssistantInfo":
"Einkaþjónusta allan sólarhringinn, svarar spurningum, gefur tillögur",
"simultaneousInterpretation": "Samtímatúlkun",
"interpretation": "Samtímatúlkun",
"simultaneousInterpretationInfo":
"Rauntímaþýðing fyrir yfir 80 tungumál, áhyggjulausar utanlandsferðir",
"aiCompanion": "Fjölskyldufélagi",

2
lib/core/translations/language/it_it.dart

@ -120,7 +120,7 @@ const Map<String, String> itIT = {
"aiAssistant": "Assistente AI completo",
"aiAssistantInfo":
"Consulente esclusivo 24/7, risponde a domande, fornisce suggerimenti",
"simultaneousInterpretation": "Interpretazione simultanea",
"interpretation": "Interpretazione simultanea",
"simultaneousInterpretationInfo":
"Traduzione in tempo reale in oltre 80 lingue, viaggi all'estero senza preoccupazioni",
"aiCompanion": "Compagno di famiglia",

2
lib/core/translations/language/ja_jp.dart

@ -118,7 +118,7 @@ const Map<String, String> jaJP = {
"topAiExperiences": "トップAI体験",
"aiAssistant": "AIアシスタント",
"aiAssistantInfo": "24時間365日の個人アドバイザー、質問と助言",
"simultaneousInterpretation": "同時通訳",
"interpretation": "同時通訳",
"simultaneousInterpretationInfo": "80以上の言語のリアルタイム翻訳",
"aiCompanion": "親子の付き添い",
"aiCompanionInfo": "あなたを理解し、温かい付き添いを提供",

2
lib/core/translations/language/ko_kr.dart

@ -116,7 +116,7 @@ const Map<String, String> koKR = {
"topAiExperiences": "인기 AI 경험",
"aiAssistant": "AI 만능 어시스턴트",
"aiAssistantInfo": "24시간 전용 컨설턴트, 질문 답변, 제안 제공",
"simultaneousInterpretation": "동시 통역",
"interpretation": "동시 통역",
"simultaneousInterpretationInfo": "80개 이상의 언어 실시간 번역, 해외에서도 걱정 없이",
"aiCompanion": "가족 동반자",
"aiCompanionInfo": "당신의 마음을 이해하고 따뜻하게 동행합니다",

2
lib/core/translations/language/lt_lt.dart

@ -121,7 +121,7 @@ const Map<String, String> ltLT = {
"aiAssistant": "Visapusiškas AI asistentas",
"aiAssistantInfo":
"Išskirtinis 24/7 konsultantas, atsako į klausimus, teikia pasiūlymus",
"simultaneousInterpretation": "Sinchroninis vertimas",
"interpretation": "Sinchroninis vertimas",
"simultaneousInterpretationInfo":
"Vertimas realiuoju laiku į daugiau nei 80 kalbų, nerūpestingos kelionės į užsienį",
"aiCompanion": "Šeimos draugas",

2
lib/core/translations/language/lv_lv.dart

@ -120,7 +120,7 @@ const Map<String, String> lvLV = {
"aiAssistant": "Visaptverošs AI palīgs",
"aiAssistantInfo":
"Ekskluzīvs konsultants 24/7, atbild uz jautājumiem, sniedz ieteikumus",
"simultaneousInterpretation": "Sinhronā tulkošana",
"interpretation": "Sinhronā tulkošana",
"simultaneousInterpretationInfo":
"Reāllaika tulkošana vairāk nekā 80 valodās, bezrūpīgi ceļojumi uz ārzemēm",
"aiCompanion": "Ģimenes pavadonis",

2
lib/core/translations/language/ms_my.dart

@ -120,7 +120,7 @@ const Map<String, String> msMY = {
"aiAssistant": "Pembantu AI Serba Boleh",
"aiAssistantInfo":
"Perunding eksklusif 24/7, menjawab soalan, memberi cadangan",
"simultaneousInterpretation": "Penterjemahan Serentak",
"interpretation": "Penterjemahan Serentak",
"simultaneousInterpretationInfo":
"Terjemahan masa nyata untuk 80+ bahasa, perjalanan ke luar negara tanpa bimbang",
"aiCompanion": "Teman Keluarga",

2
lib/core/translations/language/nb_no.dart

@ -119,7 +119,7 @@ const Map<String, String> nbNO = {
"aiAssistant": "Allsidig AI-assistent",
"aiAssistantInfo":
"Eksklusiv 24/7-konsulent, svarer på spørsmål, gir forslag",
"simultaneousInterpretation": "Simultantolking",
"interpretation": "Simultantolking",
"simultaneousInterpretationInfo":
"Sanntidsoversettelse for over 80 språk, bekymringsfrie utenlandsreiser",
"aiCompanion": "Familievenn",

2
lib/core/translations/language/nl_nl.dart

@ -119,7 +119,7 @@ const Map<String, String> nlNL = {
"aiAssistant": "Alles-in-één AI-assistent",
"aiAssistantInfo":
"Exclusieve 24/7 consultant, beantwoordt vragen, geeft suggesties",
"simultaneousInterpretation": "Simultaanvertolking",
"interpretation": "Simultaanvertolking",
"simultaneousInterpretationInfo":
"Realtime vertaling in meer dan 80 talen, zorgeloos reizen naar het buitenland",
"aiCompanion": "Familiebegeleider",

2
lib/core/translations/language/pl_pl.dart

@ -120,7 +120,7 @@ const Map<String, String> plPL = {
"aiAssistant": "Wszechstronny asystent AI",
"aiAssistantInfo":
"Ekskluzywny konsultant 24/7, odpowiada na pytania, udziela sugestii",
"simultaneousInterpretation": "Tłumaczenie symultaniczne",
"interpretation": "Tłumaczenie symultaniczne",
"simultaneousInterpretationInfo":
"Tłumaczenie w czasie rzeczywistym na ponad 80 języków, bezproblemowe podróże zagraniczne",
"aiCompanion": "Towarzysz rodzinny",

2
lib/core/translations/language/pt_pt.dart

@ -120,7 +120,7 @@ const Map<String, String> ptPT = {
"aiAssistant": "Assistente IA Completo",
"aiAssistantInfo":
"Consultor exclusivo 24/7, responde a perguntas, dá sugestões",
"simultaneousInterpretation": "Interpretação Simultânea",
"interpretation": "Interpretação Simultânea",
"simultaneousInterpretationInfo":
"Tradução em tempo real para mais de 80 idiomas, viagens ao estrangeiro sem preocupações",
"aiCompanion": "Companheiro Familiar",

2
lib/core/translations/language/ro_ro.dart

@ -120,7 +120,7 @@ const Map<String, String> roRO = {
"aiAssistant": "Asistent AI multifuncțional",
"aiAssistantInfo":
"Consultant exclusiv 24/7, răspunde la întrebări, oferă sugestii",
"simultaneousInterpretation": "Interpretare simultană",
"interpretation": "Interpretare simultană",
"simultaneousInterpretationInfo":
"Traducere în timp real în peste 80 de limbi, călătorii fără griji în străinătate",
"aiCompanion": "Companion de familie",

2
lib/core/translations/language/ru_ru.dart

@ -121,7 +121,7 @@ const Map<String, String> ruRU = {
"aiAssistant": "Всемогущий AI-помощник",
"aiAssistantInfo":
"Эксклюзивный консультант 24/7, отвечает на вопросы, дает советы",
"simultaneousInterpretation": "Синхронный перевод",
"interpretation": "Синхронный перевод",
"simultaneousInterpretationInfo":
"Перевод в реальном времени на более чем 80 языков, беззаботные поездки за границу",
"aiCompanion": "Семейный компаньон",

2
lib/core/translations/language/sk_sk.dart

@ -120,7 +120,7 @@ const Map<String, String> skSK = {
"aiAssistant": "Všestranný AI asistent",
"aiAssistantInfo":
"Exkluzívny konzultant 24/7, odpovedá na otázky, poskytuje návrhy",
"simultaneousInterpretation": "Simultánne tlmočenie",
"interpretation": "Simultánne tlmočenie",
"simultaneousInterpretationInfo":
"Preklad v reálnom čase vo viac ako 80 jazykoch, bezstarostné cestovanie do zahraničia",
"aiCompanion": "Rodinný spoločník",

2
lib/core/translations/language/sl_si.dart

@ -120,7 +120,7 @@ const Map<String, String> slSI = {
"aiAssistant": "Vsestranski pomočnik AI",
"aiAssistantInfo":
"Ekskluzivni svetovalec 24/7, odgovarja na vprašanja, daje predloge",
"simultaneousInterpretation": "Simultano tolmačenje",
"interpretation": "Simultano tolmačenje",
"simultaneousInterpretationInfo":
"Prevajanje v realnem času v več kot 80 jezikov, brezskrbna potovanja v tujino",
"aiCompanion": "Družinski spremljevalec",

2
lib/core/translations/language/sr_rs.dart

@ -119,7 +119,7 @@ const Map<String, String> srRS = {
"aiAssistant": "AI sveobuhvatni asistent",
"aiAssistantInfo":
"Ekskluzivni konsultant 24/7, odgovara na pitanja, daje predloge",
"simultaneousInterpretation": "Simultano prevođenje",
"interpretation": "Simultano prevođenje",
"simultaneousInterpretationInfo":
"Prevođenje u realnom vremenu na 80+ jezika, bezbrižna putovanja u inostranstvo",
"aiCompanion": "Porodični pratilac",

2
lib/core/translations/language/sv_se.dart

@ -119,7 +119,7 @@ const Map<String, String> svSE = {
"topAiExperiences": "Topp AI-upplevelser",
"aiAssistant": "AI Allround-assistent",
"aiAssistantInfo": "Exklusiv konsult dygnet runt, svarar på frågor, ger råd",
"simultaneousInterpretation": "Simultantolkning",
"interpretation": "Simultantolkning",
"simultaneousInterpretationInfo":
"Realtidsöversättning för över 80 språk, bekymmersfria utlandsresor",
"aiCompanion": "Familjekamrat",

2
lib/core/translations/language/th_th.dart

@ -117,7 +117,7 @@ const Map<String, String> thTH = {
"topAiExperiences": "ประสบการณ์ AI ยอดนิยม",
"aiAssistant": "ผู้ช่วย AI รอบด้าน",
"aiAssistantInfo": "ที่ปรึกษาส่วนตัว 24 ชั่วโมง ตอบคำถาม ให้คำแนะนำ",
"simultaneousInterpretation": "การแปลภาษาพร้อมกัน",
"interpretation": "การแปลภาษาพร้อมกัน",
"simultaneousInterpretationInfo":
"แปลภาษากว่า 80 ภาษาแบบเรียลไทม์ เดินทางต่างประเทศไร้กังวล",
"aiCompanion": "เพื่อนคู่คิดสำหรับครอบครัว",

2
lib/core/translations/language/tl_ph.dart

@ -121,7 +121,7 @@ const Map<String, String> tlPH = {
"aiAssistant": "AI All-in-One Assistant",
"aiAssistantInfo":
"24/7 na eksklusibong consultant, sumasagot sa mga tanong, nagbibigay ng payo",
"simultaneousInterpretation": "Sabayang Pagsasalin",
"interpretation": "Sabayang Pagsasalin",
"simultaneousInterpretationInfo":
"Real-time na pagsasalin sa 80+ na wika, walang alalahanin sa paglalakbay sa ibang bansa",
"aiCompanion": "Kasama ng Pamilya",

2
lib/core/translations/language/tr_tr.dart

@ -119,7 +119,7 @@ const Map<String, String> trTR = {
"topAiExperiences": "En İyi Yapay Zeka Deneyimleri",
"aiAssistant": "Her Şey Dahil Yapay Zeka Asistanı",
"aiAssistantInfo": "Sorular ve tavsiyeler için 7/24 özel danışman",
"simultaneousInterpretation": "Simultane Çeviri",
"interpretation": "Simultane Çeviri",
"simultaneousInterpretationInfo":
"80'den fazla dil için gerçek zamanlı çeviri, sorunsuz yurt dışı seyahati",
"aiCompanion": "Aile Arkadaşı",

2
lib/core/translations/language/uk_ua.dart

@ -121,7 +121,7 @@ const Map<String, String> ukUA = {
"aiAssistant": "Всемогутній помічник AI",
"aiAssistantInfo":
"Ексклюзивний консультант 24/7, відповідає на запитання, надає поради",
"simultaneousInterpretation": "Синхронний переклад",
"interpretation": "Синхронний переклад",
"simultaneousInterpretationInfo":
"Переклад у реальному часі на 80+ мов, безтурботні подорожі за кордон",
"aiCompanion": "Сімейний компаньйон",

2
lib/core/translations/language/vi_vn.dart

@ -118,7 +118,7 @@ const Map<String, String> viVN = {
"aiAssistant": "Trợ lý toàn năng AI",
"aiAssistantInfo":
"Tư vấn viên độc quyền 24/7, trả lời câu hỏi, cung cấp đề xuất",
"simultaneousInterpretation": "Phiên dịch đồng thời",
"interpretation": "Phiên dịch đồng thời",
"simultaneousInterpretationInfo":
"Dịch thời gian thực hơn 80 ngôn ngữ, du lịch nước ngoài không lo",
"aiCompanion": "Bạn đồng hành gia đình",

12
lib/core/translations/language/zh_cn.dart

@ -119,7 +119,7 @@ const Map<String, String> zhCN = {
"topAiExperiences": "热门AI体验",
"aiAssistant": "AI全能助手",
"aiAssistantInfo": "24小时专属顾问,解答问题、提供建议",
"simultaneousInterpretation": "同声传译",
"interpretation": "翻译",
"simultaneousInterpretationInfo": "80+语言实时翻译,出国无忧",
"aiCompanion": "亲子陪伴",
"aiCompanionInfo": "懂你心意,温暖陪伴",
@ -166,7 +166,7 @@ const Map<String, String> zhCN = {
"allRoundAssistantInfo": "帮你解决各类问题",
"simultaneousTranslation": "同声翻译",
"faceToFaceTranslation": "面对面翻译",
'audioVideoTranslation': '音视频翻译',
'audioVideoTranslation': '多媒体翻译',
'callTranslation': '通话翻译',
"simultaneousTranslationInfo": "实时翻译80+种语言",
"aiGirlfriend": "亲子陪伴",
@ -897,14 +897,6 @@ const Map<String, String> zhCN = {
// 翻译模块
// 翻译中间层 (translation_middleware_view.dart)
"translationCenter": "翻译中心", // 翻译中心
"translationCenterDescription": "选择您需要的翻译功能", // 选择您需要的翻译功能
"realtimeTranslation": "实时翻译", // 实时翻译
"realtimeTranslationDescription": "实时语音翻译,支持多种语言", // 实时语音翻译,支持多种语言
"translationHistoryTitle": "翻译历史", // 翻译历史
"translationHistoryDescription": "查看历史翻译记录", // 查看历史翻译记录
"translationStatsTitle": "翻译统计", // 翻译统计
"translationStatsDescription": "查看翻译使用统计信息", // 查看翻译使用统计信息
// 翻译主页 (translation_view.dart)
"translationHistory": "翻译历史",

4
lib/core/translations/language/zh_hk.dart

@ -117,7 +117,7 @@ const Map<String, String> zhHK = {
"topAiExperiences": "熱門AI體驗",
"aiAssistant": "AI全能助手",
"aiAssistantInfo": "24小時專屬顧問,解答問題、提供建議",
"simultaneousInterpretation": "同聲傳譯",
"interpretation": "翻譯",
"simultaneousInterpretationInfo": "80+種語言實時翻譯,出國無憂",
"aiCompanion": "親子陪伴",
"aiCompanionInfo": "懂你心意,溫暖陪伴",
@ -164,7 +164,7 @@ const Map<String, String> zhHK = {
"allRoundAssistantInfo": "幫你解決各類問題",
"simultaneousTranslation": "同聲翻譯",
"faceToFaceTranslation": "面對面翻譯",
'audioVideoTranslation': '影音翻譯',
'audioVideoTranslation': '多媒體翻譯',
'callTranslation': '通話翻譯',
"simultaneousTranslationInfo": "實時翻譯80+種語言",
"aiGirlfriend": "親子陪伴",

2
lib/modules/explore/controllers/explore_controller.dart

@ -65,7 +65,7 @@ class ExploreController extends GetxController {
targetRoute: Routes.agent,
),
AIFeature(
title: 'simultaneousInterpretation'.tr, // 同声翻译
title: 'interpretation'.tr, // 翻译
description: 'simultaneousInterpretationInfo'.tr, // 实时翻译80+种语言
icon: Icons.translate,
startColor: const Color(0xFF4CAF50),

4
lib/modules/home/views/home_view.dart

@ -839,9 +839,9 @@ class HomeView extends GetView<HomeController> {
flex: 1,
child: Column(
children: [
// 右上卡片 - 同声翻译
// 右上卡片 - 翻译
_buildFeatureCard(
title: 'simultaneousInterpretation'.tr, // 同声传译
title: 'interpretation'.tr, // 翻译
description:
'simultaneousInterpretationInfo'.tr, // 80+语言实时翻译,出国无忧
icon: Icons.translate,

20
lib/modules/translation/controllers/translation_controller.dart

@ -412,14 +412,6 @@ class TranslationController extends GetxController with WidgetsBindingObserver {
// 监听应用生命周期:当应用切到后台/失焦时兜底重置 activeSpeaker
WidgetsBinding.instance.addObserver(this);
// 延迟显示模式选择器,确保页面已经完全加载
// WidgetsBinding.instance.addPostFrameCallback((_) async {
// // 确保上下文有效
// if (Get.context == null || !Get.context!.mounted) return;
// _showModeSelector();
// });
}
/// 预先检查权限
@ -474,18 +466,6 @@ class TranslationController extends GetxController with WidgetsBindingObserver {
}
}
/// 显示模式选择器
void _showModeSelector() {
try {
final isDarkMode = Get.theme.brightness == Brightness.dark;
// 直接使用现有的翻译模式选择器组件
TranslationModeSelector.show(isDarkMode);
} catch (e) {
Logger.error('显示模式选择器失败: $e');
}
}
/// 保存悬浮按钮位置
void saveFloatingButtonPosition(Offset position) {
floatingButtonPosition.value = position;

2
lib/modules/translation/middleware/controllers/translation_middleware_controller.dart

@ -33,7 +33,7 @@ class TranslationMiddlewareController extends GetxController {
),
TranslationOption(
translationId: 'audioVideo',
title: 'audioVideoTranslation', // 音频视频翻译
title: 'audioVideoTranslation', // 多媒体翻译
description: 'audioVideoTranslationDescription', // 支持音频和视频翻译
icon: Icons.videocam,
iconColor: 0xFF9C27B0, // 紫色

56
lib/modules/translation/middleware/views/translation_middleware_view.dart

@ -36,7 +36,7 @@ class TranslationMiddlewareView
onPressed: () => Get.back(),
),
title: Text(
'translationServices'.tr, // 翻译服务
'interpretation'.tr, // 翻译
style: TextStyle(
fontSize: 20.sp,
fontWeight: FontWeight.bold,
@ -54,10 +54,6 @@ class TranslationMiddlewareView
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
// 页面标题和描述
// _buildHeader(isDarkMode),
// SizedBox(height: 30.h),
// 翻译功能选项网格
Expanded(
child: _buildTranslationOptionsGrid(isDarkMode),
@ -68,32 +64,6 @@ class TranslationMiddlewareView
);
}
/// 构建页面头部
Widget _buildHeader(bool isDarkMode) {
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'chooseTranslationService'.tr, // 选择翻译服务
style: TextStyle(
fontSize: 24.sp,
fontWeight: FontWeight.bold,
color: isDarkMode ? Colors.white : Colors.black87,
),
),
SizedBox(height: 8.h),
Text(
'translationServiceDescription'.tr, // 选择适合您需求的翻译功能
style: TextStyle(
fontSize: 16.sp,
color: isDarkMode ? Colors.grey[300] : Colors.grey[600],
height: 1.4,
),
),
],
);
}
/// 构建翻译选项网格
Widget _buildTranslationOptionsGrid(bool isDarkMode) {
return GridView.builder(
@ -165,20 +135,20 @@ class TranslationMiddlewareView
maxLines: 2,
overflow: TextOverflow.ellipsis,
),
SizedBox(height: 8.h),
//SizedBox(height: 8.h),
// 描述
Text(
controller.getLocalizedDescription(option),
style: TextStyle(
fontSize: 12.sp,
color: isDarkMode ? Colors.grey[400] : Colors.grey[600],
height: 1.3,
),
textAlign: TextAlign.center,
maxLines: 3,
overflow: TextOverflow.ellipsis,
),
// Text(
// controller.getLocalizedDescription(option),
// style: TextStyle(
// fontSize: 12.sp,
// color: isDarkMode ? Colors.grey[400] : Colors.grey[600],
// height: 1.3,
// ),
// textAlign: TextAlign.center,
// maxLines: 3,
// overflow: TextOverflow.ellipsis,
// ),
],
),
),

39
lib/modules/translation/views/translation_view.dart

@ -87,10 +87,10 @@ class TranslationView extends GetView<TranslationController> {
),
// 可拖拽的悬浮按钮 - 在所有模式下都显示
DraggableFloatingButton(
isDarkMode: isDarkMode,
controller: controller,
),
// DraggableFloatingButton(
// isDarkMode: isDarkMode,
// controller: controller,
// ),
],
),
);
@ -143,16 +143,6 @@ class TranslationView extends GetView<TranslationController> {
),
title: Obx(() => GestureDetector(
onTap: () {
// 点击标题时弹出翻译模式选择器
// 从拖拽按钮位置作为锚点打开
// final pos = controller.floatingButtonPosition.value;
// final Size screen = MediaQuery.of(Get.context!).size;
// // 已保存的是距右、下的偏移,需要换算为屏幕坐标中的中心点
// final double buttonSize = 56.w;
// final double left = screen.width - pos.dx - buttonSize;
// final double top = screen.height - pos.dy - buttonSize;
// final Offset anchor =
// Offset(left + buttonSize / 2, top + buttonSize / 2);
TranslationModeSelector.show(isDarkMode);
},
child: Text(
@ -678,26 +668,7 @@ class TranslationView extends GetView<TranslationController> {
if (isRecognizing) {
controller.stopAll();
} else {
// 获取底部按钮的位置
if (controlBarKey.currentContext != null) {
final RenderBox renderBox =
controlBarKey.currentContext!.findRenderObject()
as RenderBox;
final buttonPosition =
renderBox.localToGlobal(Offset.zero);
final buttonSize = renderBox.size;
// 计算按钮中心点
final Offset anchor = buttonPosition +
Offset(buttonSize.width / 2,
buttonSize.height / 2);
TranslationModeSelector.show(isDarkMode,
anchor: anchor);
//controller.startRecognition();
} else {
TranslationModeSelector.show(isDarkMode);
}
controller.startRecognition();
}
},
child: Container(

Loading…
Cancel
Save