You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(i18n): translate 12 missing Traditional Chinese file explorer search strings - #49997
With the desktop app set to Traditional Chinese, the file explorer search and a few nearby labels still showed up in English. This adds Traditional Chinese text for those 12 strings.
What Changed
Before: these 12 keys were in en.json but missing from zh-Hant.json, so i18next fell back to English. For example: Files in {{path}}, Show all {{count}}, Search {{path}}, Too many matches, Not available here, Preview is available when this code block finishes.
After: they show in Traditional Chinese, e.g. {{path}} 中的檔案, 顯示全部 {{count}} 個, 搜尋 {{path}}, 符合項目過多, 此處無法使用.
Mechanism: the PR only adds leaves to src/renderer/src/i18n/locales/zh-Hant.json: fileExplorer.combinedSearch.* (9, as a new object), fileExplorer.root.combinedSearchExplanation (1), components.native-chat.htmlViewPreviewWaiting (1) and fileSearch.unavailable (1). Each sits at the same path as its English key. No existing value changes. The two lines shown as removed are existing values that now end in a trailing comma.
Why
Users with Traditional Chinese selected saw English in a main search surface. The wording follows the catalog's existing terms (工作區, 稀疏檢出, 檔案, 搜尋), and every value keeps exactly the {{placeholder}} set of its English string.
N/A. Only catalog text is added; no layout, component or style changes. Every new string appears verbatim in the diff.
Testing
I manually tested these changes locally. The app was not launched because only locale values change.
Automated tests added/updated, or explained why not below. No new tests: the existing catalog verifiers already check placeholder parity and key paths.
Every added test fails without this change and avoids the test anti-patterns. No tests were added.
On macOS, rebased onto current main:
verify:localization-catalogs passes (zh-Hant: 22314 verified entries), and verify:localization-catalog and verify:localization-protected-copy pass.
A script confirmed that each of the 12 keys exists in en.json at the same path and has the same {{placeholder}} set.
oxfmt --check, ast-grep, the oxlint gates and the changed-code quality gate are clean (JSON is out of scope for the code linters).
Performance
None, because only the Traditional Chinese catalog grows, by 466 bytes (1.082 MB total). It is parsed once when that locale loads, and the old vs new JSON.parse medians were within noise (~3-5 ms either way). No runtime path, polling, I/O or render work changes.
Risk
Level: Low
Only Traditional Chinese text is added. The worst case is an awkward word choice, which users would see in place of English. A plain revert backs it out.
Review
Cross-platform: text only.
SSH/remote: not affected.
Mobile: not touched.
Security: no code changes.
Agent skill upstream boundary
Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.
Notes
Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Checklist
This PR is small and focused
I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
I stated the risk: what could break, for whom, and how to back it out
Before/after screenshots or videos attached for UI changes, or N/A with reason
Self-reviewed for correctness, security, and performance
Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred). CI covers these; only a locale JSON file changes.
No actionable comments were generated in the recent review.
Walkthrough
Added Traditional Chinese strings for a code block that is still generating, file-explorer empty folders, search guidance, combined search, and unavailable search.
Severity of issue fixed: Medium
Merge Risk: Minimal · up to 2cf8c
This adds Traditional Chinese text for the file explorer search and HTML preview states, so those screens no longer fall back to English. The change is limited to locale strings and is low risk to merge.
Pre-merge checks: 3 · 1
Failed checks: 1 inconclusive
Check name
Status
Explanation
Resolution
Linked Issues check
Issue #49995 requires Traditional Chinese text for the affected strings. Its desktop scope is 12 strings in src/renderer/src/i18n/locales/zh-Hant.json. The PR objectives limit this PR to that desktop …
Provide a readable diff or blob of src/renderer/src/i18n/locales/zh-Hant.json at the merge base and head, so the 12 added keys and their values can be checked against en.json. Also confirm the intended link: if this PR covers only the deskt…
Passed checks: 3 passed
Check name
Status
Explanation
Out of Scope Changes check
The whole-PR change, per the PR description and the change summary, touches only src/renderer/src/i18n/locales/zh-Hant.json (+16/-2). The two removed lines are existing values rewritten with a trailin…
Title check
The title names a specific fix: adding Traditional Chinese translations for 12 missing file explorer search strings in the zh-Hant locale. The changeset adds exactly these entries to zh-Hant.json, so …
Description check
The description follows the template closely. It covers ELI5, What Changed (before/after with examples and mechanism), Why, a Linked Issue (Fixes #49995), Visual Proof marked N/A with a reason, Testin…
Full details: Out of Scope Changes check
Explanation
The whole-PR change, per the PR description and the change summary, touches only src/renderer/src/i18n/locales/zh-Hant.json (+16/-2). The two removed lines are existing values rewritten with a trailing comma where a new key follows. No source code, tests, other locales, or the mobile catalog are changed. Every change is a Traditional Chinese locale string for the issue's desktop scope, so no unrelated change is shown. This conclusion relies on the summary, because the diff could not be read to confirm the file contents.
Full details: Title check
Explanation
The title names a specific fix: adding Traditional Chinese translations for 12 missing file explorer search strings in the zh-Hant locale. The changeset adds exactly these entries to zh-Hant.json, so the title matches the main change. The conventional-commit prefix is acceptable and the title is short and specific.
Full details: Description check
Explanation
The description follows the template closely. It covers ELI5, What Changed (before/after with examples and mechanism), Why, a Linked Issue (Fixes #49995), Visual Proof marked N/A with a reason, Testing, Performance with a reason, Risk with level Low and a revert path, Review, the Agent skill boundary, Notes, and the Checklist. The Linked Issue section is filled. The AI Disclosure section is left blank, but the template says it applies only to non-StablyAI contributors, so the author may not need to complete it. The Risk and Performance sections are substantive. The description is complete enough for review.
Full details: Linked Issues check
Explanation
Issue #49995 requires Traditional Chinese text for the affected strings. Its desktop scope is 12 strings in src/renderer/src/i18n/locales/zh-Hant.json. The PR objectives limit this PR to that desktop scope. The phone strings in mobile/src/i18n/locales/zh-Hant.json (1,013 strings) are not changed by this PR. The PR also says 'Fixes #49995', which would close the issue after only the desktop part lands. The repository diff for zh-Hant.json could not be read (changed blobs unavailable), and the head file read was truncated before the relevant keys. The 12 added keys, their values, and their placement under fileExplorer, components.native-chat and fileSearch are therefore not verified from source. The PR description and the change summary (+16/-2 in zh-Hant.json) are consistent with the 12 keys, but they are not source evidence.
Resolution
Provide a readable diff or blob of src/renderer/src/i18n/locales/zh-Hant.json at the merge base and head, so the 12 added keys and their values can be checked against en.json. Also confirm the intended link: if this PR covers only the desktop part of #49995, the issue reference should not close the issue (for example, a non-closing reference), or the phone strings must be covered by a linked PR.
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 90cb9128-8ea9-4927-a04c-0a6264dec51b
Commits
Reviewing files that changed from the base of the PR and between 9bc9c47 and 2cf8c54.
Files selected for processing: 1
src/renderer/src/i18n/locales/zh-Hant.json
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
nwparker
changed the title
fix(i18n): translate 12 missing Traditional Chinese strings for file explorer search
fix(i18n): translate 12 missing Traditional Chinese file explorer search strings
Nov 26, 2026
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
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.
ELI5
With the desktop app set to Traditional Chinese, the file explorer search and a few nearby labels still showed up in English. This adds Traditional Chinese text for those 12 strings.
What Changed
en.jsonbut missing fromzh-Hant.json, so i18next fell back to English. For example:Files in {{path}},Show all {{count}},Search {{path}},Too many matches,Not available here,Preview is available when this code block finishes.{{path}} 中的檔案,顯示全部 {{count}} 個,搜尋 {{path}},符合項目過多,此處無法使用.src/renderer/src/i18n/locales/zh-Hant.json:fileExplorer.combinedSearch.*(9, as a new object),fileExplorer.root.combinedSearchExplanation(1),components.native-chat.htmlViewPreviewWaiting(1) andfileSearch.unavailable(1). Each sits at the same path as its English key. No existing value changes. The two lines shown as removed are existing values that now end in a trailing comma.Why
Users with Traditional Chinese selected saw English in a main search surface. The wording follows the catalog's existing terms (工作區, 稀疏檢出, 檔案, 搜尋), and every value keeps exactly the
{{placeholder}}set of its English string.Linked Issue
Fixes #49995
Original fix by @Pr1p in #49997.
Visual Proof
N/A. Only catalog text is added; no layout, component or style changes. Every new string appears verbatim in the diff.
Testing
On macOS, rebased onto current
main:verify:localization-catalogspasses (zh-Hant: 22314 verified entries), andverify:localization-catalogandverify:localization-protected-copypass.en.jsonat the same path and has the same{{placeholder}}set.oxfmt --check, ast-grep, the oxlint gates and the changed-code quality gate are clean (JSON is out of scope for the code linters).Performance
None, because only the Traditional Chinese catalog grows, by 466 bytes (1.082 MB total). It is parsed once when that locale loads, and the old vs new
JSON.parsemedians were within noise (~3-5 ms either way). No runtime path, polling, I/O or render work changes.Risk
Level: Low
Only Traditional Chinese text is added. The worst case is an awkward word choice, which users would see in place of English. A plain revert backs it out.
Review
Agent skill upstream boundary
Notes
Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred). CI covers these; only a locale JSON file changes.