Skip to content

fix(i18n): translate the file explorer's search field into Korean - #49909

Merged
nwparker merged 1 commit into
stablyai:mainfrom
dbsghdz1:fix/ko-file-search-strings
Nov 26, 2026
Merged

nwparker merged 1 commit into
stablyai:mainfrom
dbsghdz1:fix/ko-file-search-strings

Conversation

@dbsghdz1

@dbsghdz1 dbsghdz1 commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

The file explorer now has one search box for both file names and text, but in Korean its placeholder, section headers and status rows still showed up in English. This adds the Korean text for them. It also adds Korean for a screen reader note in the chat's HTML view.

What Changed

  • Before: with Orca set to Korean, the combined search field from feat(files): one search field for file names and text #49637 showed English text. That covered the placeholder ("Search", or "Search {{path}}" in a sparse checkout), the section headers ("Files", "Text", "Files in {{path}}", "Text in workspace"), "Show all {{count}}", "No results", "Too many matches", "Not available here", and the scope popover's line about what search covers. The chat HTML view's screen reader note for the disabled Preview toggle (Wait for chat HTML fences before previewing #49574) was also English.
  • After: all of these show in Korean.
  • Mechanism: src/renderer/src/i18n/locales/ko.json gets the 12 missing leaves, in en.json's order: fileExplorer.combinedSearch.* (9), fileExplorer.root.combinedSearchExplanation, fileSearch.unavailable and components.native-chat.htmlViewPreviewWaiting. Nothing else changes: +16/-2, and the 2 removed lines only gain a trailing comma.

Why

These keys were missing from the Korean catalog, so i18next fell back to English. Where the catalog already has Korean for the same English, the new strings reuse it: 검색 (Search), 파일 (Files), 텍스트 (Text), 결과 없음 (No results), 미리보기 (Preview), 스파스 체크아웃 (sparse checkout) and 일치하는 항목 (matches). The two templates follow existing ones: "Search {{value0}}" is already "{{value0}}에서 검색", and "Show all {{value0}} plugins" is already "플러그인 {{value0}}개 모두 표시". Each new string keeps the same {{path}} / {{count}} placeholders as English.

Linked Issue

Fixes #49908

Visual Proof

N/A: this only changes catalog text, and there is no layout or interaction change. The table below shows each key rendered with Orca's translate against the Korean catalog of main (which falls back to English) and of this branch, with count = 37 and path = src/components:

Key main This branch
components.native-chat.htmlViewPreviewWaiting Preview is available when this code block finishes. 이 코드 블록이 완성되면 미리보기를 사용할 수 있습니다.
fileExplorer.root.combinedSearchExplanation Search finds file names in the folder you are viewing and text across the workspace. Files omitted by sparse checkout are not searched. 검색은 보고 있는 폴더에서 파일 이름을, 워크스페이스 전체에서 텍스트를 찾습니다. 스파스 체크아웃으로 제외된 파일은 검색하지 않습니다.
fileExplorer.combinedSearch.text Text 텍스트
fileExplorer.combinedSearch.filesIn Files in src/components src/components의 파일
fileExplorer.combinedSearch.files Files 파일
fileExplorer.combinedSearch.showAll Show all 37 37개 모두 표시
fileExplorer.combinedSearch.noResults No results 결과 없음
fileExplorer.combinedSearch.placeholder Search 검색
fileExplorer.combinedSearch.placeholderScoped Search src/components src/components에서 검색
fileExplorer.combinedSearch.textInWorkspace Text in workspace 워크스페이스의 텍스트
fileExplorer.combinedSearch.refine Too many matches 일치하는 항목이 너무 많음
fileSearch.unavailable Not available here 여기서는 사용할 수 없음

Testing

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below
  • Every added test fails without this change and avoids the test anti-patterns (no tests added: a test would only repeat the strings)

Run on macOS, with this commit squashed onto current main:

  • A script confirmed that all 12 keys exist in en.json and ko.json, and that each Korean value has the same {{…}} placeholders as the English one.
  • pnpm verify:localization-catalog passes.
  • vitest run config/scripts/localization config/scripts/locale-catalog passes (4 files, 8 tests).
  • oxfmt --check passes on ko.json. The anti-slop and code-quality oxlint configs, ast-grep scan and the changed-code quality gate have nothing to flag, because no JS/TS changed.

Performance

None, because the change only adds 12 strings (about 800 bytes, +0.045%) to the Korean catalog, which is already loaded. A JSON.parse benchmark of the old and new ko.json (order-balanced, 60 runs each) showed no difference beyond machine noise. No code path runs differently.

Risk

Level: Low

This affects only the Korean locale, only text, and only new keys. The worst case is a Korean line that reads awkwardly. A plain revert backs it out.

Review

  • Cross-platform: catalog text only.
  • SSH/remote: not affected.
  • Mobile: no change.
  • Security: no change.

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

Original fix by @dbsghdz1 in #49909. Their commit is squashed onto current main with authorship preserved.

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)

@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 98ccbd84-fbff-480e-b96a-fa6a7ec28f53
Commits

Reviewing files that changed from the base of the PR and between 33c05ee and 0943e4c.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

The Korean locale adds text for HTML preview availability and File Explorer search. The new search strings cover file and text results, search scope, result limits, empty results, unavailable states, and sparse-checkout exclusions.

Severity of issue fixed: Low

Merge Risk: Minimal · previous review 33c05

This change adds Korean translations for file explorer search and the HTML preview note. It carries no meaningful merge risk, and a revert would undo it cleanly.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title says the PR translates the file explorer's search field into Korean. The changeset adds Korean catalog entries in ko.json for 12 strings, including the search placeholders, section headers, …
Description check Passed The description follows the template well. It has ELI5, What Changed (before/after and mechanism), Why, a linked issue (Fixes #49908), Visual Proof (N/A with a reason and a before/after table of rende…
Linked Issues check Passed Directly linked issue #49908 asks for Korean values for 12 combined-search and related keys that are missing from ko.json. The only coding requirement is adding those catalog entries. The whole-PR sum…
Out of Scope Changes check Passed The whole-PR summary reports one changed file, src/renderer/src/i18n/locales/ko.json, with +16/-2 lines. The added lines are Korean catalog values for the keys named in #49908 and the chat HTML view n…
Full details: Title check

Explanation

The title says the PR translates the file explorer's search field into Korean. The changeset adds Korean catalog entries in ko.json for 12 strings, including the search placeholders, section headers, status rows, and scope explanation. The title names the main change, but it covers only the search field. The same change also adds Korean for the chat HTML view's screen-reader note and the file-search unavailable label, so the title is partially related in scope. It is not vague, and it is not misleading.

Full details: Description check

Explanation

The description follows the template well. It has ELI5, What Changed (before/after and mechanism), Why, a linked issue (Fixes #49908), Visual Proof (N/A with a reason and a before/after table of rendered strings), Testing, Performance, Risk with level and revert method, AI Disclosure, Review, the upstream boundary checkbox, Notes, and Checklist. Some template comment placeholders remain, but every required section is filled in with specific information.

Full details: Linked Issues check

Explanation

Directly linked issue #49908 asks for Korean values for 12 combined-search and related keys that are missing from ko.json. The only coding requirement is adding those catalog entries. The whole-PR summary (merge base 64fcbd6 to head 33c05ee) reports that src/renderer/src/i18n/locales/ko.json gains 12 keys: fileExplorer.combinedSearch.* (placeholder, placeholderScoped, files, filesIn, text, textInWorkspace, showAll, noResults, refine), fileExplorer.root.combinedSearchExplanation, fileSearch.unavailable, and components.native-chat.htmlViewPreviewWaiting. The PR description gives the Korean values and rendered before/after results for all 12 keys. Limit: the inspection tool could not return the ko.json diff (changed blobs unavailable), and the file read was truncated at 16000 bytes, so the exact key entries were not read directly. The PASS relies on the PR summary and description, which do not contradict each other. No automated test was added; the author argues that catalog text needs no unit test, and the issue does not request one.

Full details: Out of Scope Changes check

Explanation

The whole-PR summary reports one changed file, src/renderer/src/i18n/locales/ko.json, with +16/-2 lines. The added lines are Korean catalog values for the keys named in #49908 and the chat HTML view note cited there. The two changed existing lines only receive a trailing comma so the JSON stays valid. No code, behavior, or other locale files are reported as changed. The same limit applies: the ko.json diff could not be read directly, so the claim of no other changes rests on the PR summary.

  • 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.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 359165fe-783c-4f1b-8f22-a04400f9d533
Commits

Reviewing files that changed from the base of the PR and between 3587b77 and 33c05ee.

Files selected for processing: 1

  • src/renderer/src/i18n/locales/ko.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

stablyai#49637 gave the file explorer one search field for file names and
text. Its 11 strings had no Korean, so the Korean UI showed them in
English: the field's placeholder (and "Search {{path}}" in a sparse
checkout), the Files and Text section headers (and "Files in
{{path}}" and "Text in workspace" in a sparse checkout), Show all,
No results, the row for too many matches, the "Not available here"
row, and the scope popover's line on what search covers. stablyai#49574 also
added a screen reader note for the chat HTML view's disabled Preview
toggle, with no Korean.

Add the 12 keys in en.json's order, using the catalog's existing
wording where it has one: 검색, 파일, 텍스트, 결과 없음, 미리보기,
스파스 체크아웃, "{{value0}}에서 검색" for Search {{value0}}, and
"…개 모두 표시" for Show all.

Fixes stablyai#49908
@nwparker
nwparker force-pushed the fix/ko-file-search-strings branch from 33c05ee to 0943e4c Compare November 26, 2026 14:27
@nwparker
nwparker merged commit 0f56430 into stablyai:main Nov 26, 2026
55 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Korean UI: the file explorer's new search field shows in English

2 participants