Fix missing/broken i18n - #89
Merged
Merged
Conversation
… i18n keys exist All Windsurf login error display paths (single/batch/import) now attempt I18n.t() on error strings before rendering. If the error message is a known i18n key (I18n.t(err) !== err), use the translated version; otherwise fall back to the raw error string. Covers toast notifications, status text, result cards, and batch table cells.
…h panels + error.* namespace
Language toggle button now shows "中文"/"English" full words instead of "中"/"EN" abbreviations, with dynamic title tooltip ("Switch to English" / "切换到中文"). toggleLang() made async and triggers refreshActivePanelI18n() to reload the active panel's content after locale switch, so users see translated UI immediately without manual navigation.
… error codes
Dashboard i18n now includes ERR_PROXY_PRIVATE_HOST ("Private/local host is not allowed" / "内网/本地主机不允许"). net-safety.js error codes renamed from ERR_PRIVATE_HOST/ERR_PRIVATE_IP to ERR_PROXY_PRIVATE_HOST/ERR_PROXY_PRIVATE_IP for consistency with error.* namespace convention.
… rename Follows the error code rename from ERR_PRIVATE_IP to ERR_PROXY_PRIVATE_IP introduced in 94509b9 (net-safety.js error codes standardized to error.* namespace convention). Also removes trailing blank lines.
4 tasks
dwgx
added a commit
that referenced
this pull request
Apr 29, 2026
huanchen
pushed a commit
to huanchen/WindsurfAPI
that referenced
this pull request
May 3, 2026
Merging i18n fixes from @smeinecke. Thanks! Notes for follow-up (will fix in v2.0.27): - `toggleBtn.title = zhMode ? 'Switch to English' : '切换到中文'` introduces a hardcoded Chinese string that fails `node src/dashboard/check-i18n.js`. Will replace with `data-i18n-title` attribute pattern. - The `error.${err.message}` lookup pattern is duplicated across 6 sites — will centralize into an `App.translateError(code, fallback)` helper next pass. - Will also clean up the `action.revealKey` pre-existing miss while there.
huanchen
pushed a commit
to huanchen/WindsurfAPI
that referenced
this pull request
May 3, 2026
- check-i18n.js: bare identifier 不再误报缺失 key (errKey/errCode/etc)
- 补 action.revealKey 翻译(v2.0.26 之前就缺,hardcoded fallback 已去)
- 新增 footer.langToggleTo{En,Zh} 给 PR dwgx#89 引入的 toggleBtn.title 用,去掉硬编码 '切换到中文'
- 全部 i18n 检查 + 311/311 tests pass
dwgx
added a commit
that referenced
this pull request
May 9, 2026
Merging i18n fixes from @smeinecke. Thanks! Notes for follow-up (will fix in v2.0.27): - `toggleBtn.title = zhMode ? 'Switch to English' : '切换到中文'` introduces a hardcoded Chinese string that fails `node src/dashboard/check-i18n.js`. Will replace with `data-i18n-title` attribute pattern. - The `error.${err.message}` lookup pattern is duplicated across 6 sites — will centralize into an `App.translateError(code, fallback)` helper next pass. - Will also clean up the `action.revealKey` pre-existing miss while there.
dwgx
added a commit
that referenced
this pull request
May 9, 2026
dwgx
added a commit
that referenced
this pull request
Jun 4, 2026
Merging i18n fixes from @smeinecke. Thanks! Notes for follow-up (will fix in v2.0.27): - `toggleBtn.title = zhMode ? 'Switch to English' : '切换到中文'` introduces a hardcoded Chinese string that fails `node src/dashboard/check-i18n.js`. Will replace with `data-i18n-title` attribute pattern. - The `error.${err.message}` lookup pattern is duplicated across 6 sites — will centralize into an `App.translateError(code, fallback)` helper next pass. - Will also clean up the `action.revealKey` pre-existing miss while there.
dwgx
added a commit
that referenced
this pull request
Jun 4, 2026
dwgx
added a commit
that referenced
this pull request
Jun 4, 2026
Merging i18n fixes from @smeinecke. Thanks! Notes for follow-up (will fix in v2.0.27): - `toggleBtn.title = zhMode ? 'Switch to English' : '切换到中文'` introduces a hardcoded Chinese string that fails `node src/dashboard/check-i18n.js`. Will replace with `data-i18n-title` attribute pattern. - The `error.${err.message}` lookup pattern is duplicated across 6 sites — will centralize into an `App.translateError(code, fallback)` helper next pass. - Will also clean up the `action.revealKey` pre-existing miss while there.
dwgx
added a commit
that referenced
this pull request
Jun 4, 2026
dwgx
added a commit
that referenced
this pull request
Jun 4, 2026
Merging i18n fixes from @smeinecke. Thanks! Notes for follow-up (will fix in v2.0.27): - `toggleBtn.title = zhMode ? 'Switch to English' : '切换到中文'` introduces a hardcoded Chinese string that fails `node src/dashboard/check-i18n.js`. Will replace with `data-i18n-title` attribute pattern. - The `error.${err.message}` lookup pattern is duplicated across 6 sites — will centralize into an `App.translateError(code, fallback)` helper next pass. - Will also clean up the `action.revealKey` pre-existing miss while there.
dwgx
added a commit
that referenced
this pull request
Jun 4, 2026
dwgx
added a commit
that referenced
this pull request
Jun 29, 2026
Backfill contributors who were merged but never added to the thanks page, with weight tiers calibrated against existing entries: - #64 baily-zhang (S) — cascade transport canceled-session recovery - #163 you922 (A) — LS crash self-heal: exponential-backoff restart - #204 lovivi (B+) — glm-5.2 gpt_native tool dialect fix - #90 smeinecke (B+) — inline proxy on add-account form - #88 smeinecke (B+) — ALLOW_PRIVATE_PROXY_HOSTS opt-in for local proxy - #89 smeinecke (B) — login-flow i18n + error-code standardization Synced src -> docs via sync:contributors. Also gitignore .workflow-results/ (local audit artifacts, not source). dashboard tests 17/17.
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.
改了什么 / What changed
ERR_PRIVATE_IP→ERR_PROXY_PRIVATE_IP,ERR_PRIVATE_HOST→ERR_PROXY_PRIVATE_HOSTERR_PROXY_PRIVATE_HOSTtranslation key to both en.json and zh-CN.json为什么 / Why
Fixes the issue where error codes like
ERR_NO_PASSWORD_SETwere displayed raw in toasts and login history instead of human-readable translations. Also aligns error code naming with existingERR_PROXY_PRIVATE_IPfor consistency.测试 / Testing
Checklist