Skip to content

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

Open
dbsghdz1 wants to merge 1 commit into
stablyai:mainfrom
dbsghdz1:fix/ko-file-search-strings
Open

dbsghdz1 wants to merge 1 commit into
stablyai:mainfrom
dbsghdz1:fix/ko-file-search-strings

Conversation

@dbsghdz1

Copy link
Copy Markdown
Contributor

ELI5

The file explorer got one search box for file names and text, but in Korean its placeholder, section headers and status rows were still English. This adds Korean for them, plus a screen reader note in the chat's HTML view.

What Changed

  • Before: in the Korean UI, the search field from feat(files): one search field for file names and text #49637 showed its placeholder ("Search", or "Search {{path}}" in a sparse checkout), its section headers ("Files", "Text", or "Files in {{path}}" and "Text in workspace" in a sparse checkout), "Show all {{count}}", "No results", "Too many matches", "Not available here" and the scope popover's line about what search covers in English, and the chat HTML view's screen reader note from Wait for chat HTML fences before previewing #49574 was English.
  • After: they show in Korean.
  • Mechanism: src/renderer/src/i18n/locales/ko.json gets the 12 missing leaves in en.json's order (fileExplorer.combinedSearch.*, fileExplorer.root.combinedSearchExplanation, fileSearch.unavailable and components.native-chat.htmlViewPreviewWaiting). The diff adds 14 new lines and a trailing comma to 2 existing ones (+16/-2).

Why

Most words come from the catalog's existing Korean for the same English: Search is 검색, Files 파일, Text 텍스트, No results 결과 없음, Preview 미리보기 (the toggle itself), and sparse checkout 스파스 체크아웃. The two templates follow existing patterns: "Search {{value0}}" is "{{value0}}에서 검색", so "Search {{path}}" is "{{path}}에서 검색", and "Show all {{value0}} plugins" is "플러그인 {{value0}}개 모두 표시", so "Show all {{count}}" is "{{count}}개 모두 표시".

"Too many matches" and "Not available here" are rows in the same list as No results (the code notes that the "Not available here" row should read like No results), so they use the same short form: 일치하는 항목이 너무 많음 and 여기서는 사용할 수 없음. 일치하는 항목 is also how the catalog says matches elsewhere ("No matches" is 일치하는 항목 없음).

Linked Issue

If you do not have one and are an outside contributor, your PR will be ignored. Refs is not sufficient. Link an actual issue

Fixes #49908

Visual Proof

N/A for screenshots: catalog text only. All 12 lines rendered with Orca's own translate under the Korean catalog of main (where they fall back to English) and of this branch, with count 37 and path src/components:

Key English main This branch
components.native-chat.htmlViewPreviewWaiting Preview is available when this code block finishes. 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. 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 Text 텍스트
fileExplorer.combinedSearch.filesIn Files in {{path}} Files in src/components src/components의 파일
fileExplorer.combinedSearch.files Files Files 파일
fileExplorer.combinedSearch.showAll Show all {{count}} Show all 37 37개 모두 표시
fileExplorer.combinedSearch.noResults No results No results 결과 없음
fileExplorer.combinedSearch.placeholder Search Search 검색
fileExplorer.combinedSearch.placeholderScoped Search {{path}} Search src/components src/components에서 검색
fileExplorer.combinedSearch.textInWorkspace Text in workspace Text in workspace 워크스페이스의 텍스트
fileExplorer.combinedSearch.refine Too many matches Too many matches 일치하는 항목이 너무 많음
fileSearch.unavailable Not available here 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)

I did not open the search field by hand. Everything below ran on macOS, on main at 64fcbd6 and this branch on top of it.

  • A throwaway vitest (not committed, run with config/vitest.config.ts) loaded each Korean catalog into Orca's i18n and rendered the 12 keys. On main they come out in English and on this branch in Korean. The table above comes from it.
  • pnpm run verify:localization-catalog passes, oxfmt --check passes on ko.json, and pnpm exec vitest run --config config/vitest.config.ts config/scripts/localization config/scripts/locale-catalog passes (4 files, 8 tests).
  • node config/scripts/locale-catalog/repair-locale-catalog.mjs --locale ko keeps all 12 values. It changes 146 other values, the same keys to the same results as on main; I did not keep its output.
  • pnpm check:changed passes all 29 checks, including the localization catalogs, coverage and extraction checks.
  • After this change, the only desktop key without Korean that i18n: translate bot screens in all supported languages #45740 doesn't cover is the cleanup list separator, whose value ", " needs no translation.
  • No unit test: this is catalog text, and a test would only repeat the strings.

Performance

None, because only 12 Korean strings are added to the catalog; nothing else runs differently.

Risk

Level: Low

Korean only, text only, and only added keys. At worst a Korean line reads less well than it should. A plain revert backs it out.

AI Disclosure

I used Claude Code (Claude Opus 5.5). It found the missing keys, matched them to the catalog's existing Korean, wrote this description and rendered the before and after lines. A separate Claude Code review pass checked the values and the description before I opened this.

Review

  • Cross-platform: catalog text only.
  • SSH/remote: not affected.
  • Mobile: no change.
  • Security: nothing 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). I ran pnpm check:changed locally and CI covers the rest.

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.
@coderabbitai

coderabbitai Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

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 · up to 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.

This branch has not been deployed

No deployments
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

1 participant