Repository navigation
i18n(ko): add Korean (한국어) translation - #15863
Conversation
📝 WalkthroughWalkthroughThis PR adds Korean language support to the application. The core language abbreviation and mapping are registered in constants, the locale loader is configured to lazy-import the Korean locale, and the Korean language name is translated across all supported UI languages. ChangesKorean Language Support
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested labels
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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. Comment |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
web/src/constants/common.ts (1)
97-117:⚠️ Potential issue | 🟠 Major | ⚡ Quick winKorean registration is incomplete across language registries.
LanguageAbbreviation/LanguageAbbreviationMapnow include Korean, butLanguageListandLanguageMapstill omit it. Any UI/path still using those legacy registries won’t expose Korean as selectable.Suggested fix
export const LanguageList = [ 'English', 'Chinese', 'Traditional Chinese', 'Russian', 'Indonesian', 'Spanish', 'Vietnamese', 'Japanese', + 'Korean', 'Portuguese BR', 'German', 'French', 'Italian', 'Bulgarian', 'Arabic', 'Turkish', ]; export const LanguageMap = { English: 'English', Chinese: '简体中文', 'Traditional Chinese': '繁體中文', Russian: 'Русский', Indonesian: 'Bahasa Indonesia', Indonesia: 'Indonesia', Spanish: 'Español', Vietnamese: 'Tiếng việt', Japanese: '日本語', + Korean: '한국어', 'Portuguese BR': 'Português BR', German: 'Deutsch', French: 'Français', Italian: 'Italiano', Bulgarian: 'Български', Arabic: 'العربية', Turkish: 'Türkçe', };🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@web/src/constants/common.ts` around lines 97 - 117, LanguageList and LanguageMap are missing the new Korean entry so UIs still using those registries won't show Korean; update both LanguageList and LanguageMap to include an entry for LanguageAbbreviation.Ko mapped to the display name "한국어" (and ensure any corresponding value keys use the same enum member LanguageAbbreviation.Ko) so the legacy registries match LanguageAbbreviation and LanguageAbbreviationMap; verify components that iterate LanguageList/LanguageMap now surface Korean as selectable.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Outside diff comments:
In `@web/src/constants/common.ts`:
- Around line 97-117: LanguageList and LanguageMap are missing the new Korean
entry so UIs still using those registries won't show Korean; update both
LanguageList and LanguageMap to include an entry for LanguageAbbreviation.Ko
mapped to the display name "한국어" (and ensure any corresponding value keys use
the same enum member LanguageAbbreviation.Ko) so the legacy registries match
LanguageAbbreviation and LanguageAbbreviationMap; verify components that iterate
LanguageList/LanguageMap now surface Korean as selectable.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: e1e04957-5812-46b8-83e4-d1ffa874c997
📒 Files selected for processing (9)
web/src/constants/common.tsweb/src/locales/config.tsweb/src/locales/es.tsweb/src/locales/id.tsweb/src/locales/ja.tsweb/src/locales/ko.tsweb/src/locales/pt-br.tsweb/src/locales/vi.tsweb/src/locales/zh-traditional.ts
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #15863 +/- ##
=======================================
Coverage 93.16% 93.16%
=======================================
Files 10 10
Lines 717 717
Branches 118 118
=======================================
Hits 668 668
Misses 29 29
Partials 20 20 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…16203) ### What problem does this PR solve? This PR follows up on [#15863](#15863) (Korean i18n) with translation refinements and i18n coverage for hardcoded strings found in the UI. - Refine awkward Korean phrasing (e.g. 'Chunk 만들기' → 'Chunk 생성', '유형' → '타입', etc.) - Apply i18n to hardcoded strings in `message-item`, `next-message-item`, `multi-select`, `chat-prompt-engine`, and various filter hooks - Rename `use-selelct-filters.ts` → `use-select-filters.ts` (typo fix) ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
…#16203) ### What problem does this PR solve? This PR follows up on [#15863](infiniflow/ragflow#15863) (Korean i18n) with translation refinements and i18n coverage for hardcoded strings found in the UI. - Refine awkward Korean phrasing (e.g. 'Chunk 만들기' → 'Chunk 생성', '유형' → '타입', etc.) - Apply i18n to hardcoded strings in `message-item`, `next-message-item`, `multi-select`, `chat-prompt-engine`, and various filter hooks - Rename `use-selelct-filters.ts` → `use-select-filters.ts` (typo fix) ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
What problem does this PR solve?
web/src/locales/ko.tswith full Korean translation (~3100 keys)Ko = 'ko'inLanguageAbbreviationenum (common.ts)[LanguageAbbreviation.Ko]: '한국어'toLanguageAbbreviationMapweb/src/locales/config.tskoreankey to all existing locale files (ja,id,es,pt-br,vi,zh-traditional)FileMimeType.Mdx('text/markdown'→'text/mdx')Type of change