[WIP] 聊天面板国际化 + 消息翻译 (D1+D2) — 未完成,请 Liko 测试验证 - #6
Draft
heitaoplay wants to merge 2 commits into
Draft
Conversation
- chat.js 硬编码繁中全部改 T() 国际化(96 个 chatXxx 词条) - 新增 src/chat/translate.js 可插拔翻译引擎:MyMemory(默认)/Google/LibreTranslate/DeepL/自定义 - Google 后端移植自 Liko-MAT(gtx 端点,MIT ©2026 awdrrawd,已保留署名) - Translation/ 11 语言文件补齐 chat 词条 + provider 标签(5 个 chatProv*) - i18n-fallback.js 补 TW/EN 离线后备⚠️ 未完成:翻译后端未实机验证(MyMemory 当日配额耗尽、Google gtx 端点中国大陆需 VPN)。请 Liko 测试验证。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动内容
T()国际化(96 个 chatXxx 词条)src/chat/translate.js可插拔翻译引擎:MyMemory(默认) / Google / LibreTranslate / DeepL / 自定义Translation/11 语言文件补齐 chat 词条 + provider 标签(5 个 chatProv*)i18n-fallback.js补 TW/EN 离线后备chat.js:626 ServerPlayerOnlineSharedSettingsSync(BC 运行时全局,与本次改动无关)。已验证
node --check12 文件全过;101 个 chat 词条 × 11 语言全部非空、零缺译npm run build通过;npm run lint仅余预存 1 error + 9 warning,本次零新增_translateGoogle离线单测:gtx 解析正确,429/403/网络重试正常