Skip to content

fix(i18n): add missing Editor Font Family translations for es, ja, ko, zh - #11573

Merged
AmethystLiang merged 1 commit into
stablyai:mainfrom
qiuyongjin:fix/i18n-editor-font-family-missing-translations
Aug 1, 2026
Merged

AmethystLiang merged 1 commit into
stablyai:mainfrom
qiuyongjin:fix/i18n-editor-font-family-missing-translations

Conversation

@qiuyongjin

Copy link
Copy Markdown
Contributor

Summary

Added Chinese, Japanese, Korean, and Spanish translations for the Editor Font Family setting. The title, description, and placeholder were left in English across all four non-English locales, falling back to the English inline defaults in the UI.

Screenshots

Before modification:

image

After modification:

image

Testing

  • pnpm lint
  • pnpm typecheck
  • pnpm test
  • pnpm build
  • Not applicable — translations are string-only changes verified by the localization coverage check in pnpm lint.

AI Review Report

Reviewed by AI coding agent. All translations verified against the English source for accuracy (zh, ja, ko, es). Checked:

  • Cross-platform: ✅ i18n strings are platform-independent
  • SSH/remote/local: ✅ UI-only change, no runtime impact
  • Shortcuts, labels, paths, shell behavior: N/A
  • Electron-specific platform differences: N/A

Security Audit

No risk — pure translation text change. No input handling, command execution, path handling, auth, secrets, dependencies, or IPC surface.

Notes

None.

…, zh

The EditorFontFamilySetting title, description, and placeholder were left
untranslated in four non-English locales, falling back to English in the UI.
@qiuyongjin
qiuyongjin requested a review from brennanb2025 as a code owner July 30, 2026 14:20
@greptile-apps

greptile-apps Bot commented Jul 30, 2026

Copy link
Copy Markdown

Greptile Summary

Adds missing Editor Font Family translations (title, description, and placeholder) to the Spanish, Japanese, Korean, and Simplified Chinese locale files, where these strings were previously left as English fallbacks. Each locale has two key locations updated: a hash-keyed entry and a component-name-keyed EditorFontFamilySetting block.

  • Both key locations (editorFontFamily/editorFontFamilyDesc and EditorFontFamilySetting.*) are updated in every locale, keeping the UI consistent.
  • Translated titles naturally omit "Family" in ja/ko/es — this is standard localization practice for this type of UI label.

Confidence Score: 5/5

Pure string additions to four locale JSON files with no logic or runtime changes — safe to merge.

All six translated strings per locale are accurate, both key locations in each file are updated consistently, and the changes carry no runtime risk.

Files Needing Attention: No files require special attention.

Important Files Changed

Filename Overview
src/renderer/src/i18n/locales/es.json Adds Spanish translations for editorFontFamily, editorFontFamilyDesc, and EditorFontFamilySetting (title, description, placeholder). Translations are accurate and consistent.
src/renderer/src/i18n/locales/ja.json Adds Japanese translations for the six Editor Font Family strings. Title uses "エディターフォント" (omitting "Family"), which is natural for Japanese UI — consistent across both key locations.
src/renderer/src/i18n/locales/ko.json Adds Korean translations for the six Editor Font Family strings. All values consistent across both key locations in the file.
src/renderer/src/i18n/locales/zh.json Adds Simplified Chinese translations for the six Editor Font Family strings. Translations are accurate and consistent across both key locations in the file.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[Editor Font Family Setting UI] --> B{User locale?}
    B -->|en| C[English strings\nno change]
    B -->|es| D[es.json\neditorFontFamily\nEditorFontFamilySetting]
    B -->|ja| E[ja.json\neditorFontFamily\nEditorFontFamilySetting]
    B -->|ko| F[ko.json\neditorFontFamily\nEditorFontFamilySetting]
    B -->|zh| G[zh.json\neditorFontFamily\nEditorFontFamilySetting]
    D --> H[title / description / placeholder\nnow localized]
    E --> H
    F --> H
    G --> H
Loading

Reviews (1): Last reviewed commit: "fix(i18n): add missing Editor Font Famil..." | Re-trigger Greptile

@coderabbitai

coderabbitai Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 7058132c-f22b-488d-80e1-2f63acb2ab71

📥 Commits

Reviewing files that changed from the base of the PR and between ab665a3 and b1e4084.

📒 Files selected for processing (4)
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json

📝 Walkthrough

Walkthrough

Localized editor font family settings in the Spanish, Japanese, Korean, and Chinese locale files. Updated general setting labels and descriptions, along with dedicated setting titles, descriptions, and placeholders indicating the terminal font fallback.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: adding missing Editor Font Family translations for four locales.
Description check ✅ Passed The description covers all required template sections and includes screenshots, testing, AI review, security audit, and notes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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

Comment @coderabbitai help to get the list of available commands.

@AmethystLiang
AmethystLiang merged commit 8fc892d into stablyai:main Aug 1, 2026
2 checks passed
@qiuyongjin
qiuyongjin deleted the fix/i18n-editor-font-family-missing-translations branch August 4, 2026 00:41
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
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.

3 participants