i18n(ko): add Korean (한국어) translation (#15863)

### What problem does this PR solve?

- Add `web/src/locales/ko.ts` with full Korean translation (~3100 keys)
- Register `Ko = 'ko'` in `LanguageAbbreviation` enum (`common.ts`)
- Add `[LanguageAbbreviation.Ko]: '한국어'` to `LanguageAbbreviationMap`
- Add lazy-load entry in `web/src/locales/config.ts`
- Add `korean` key to all existing locale files (`ja`, `id`, `es`,
`pt-br`, `vi`, `zh-traditional`)
- Fix duplicate enum value `FileMimeType.Mdx` (`'text/markdown'` →
`'text/mdx'`)

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
- [x] Other (please describe): Korean (한국어) i18n translation + fix
duplicate FileMimeType.Mdx enum value
This commit is contained in:
Yoorim Choi
2026-06-11 17:55:40 +09:00
committed by GitHub
parent 70ae25fc7b
commit 49ef959991
9 changed files with 3137 additions and 1 deletions

View File

@@ -94,6 +94,7 @@ export enum LanguageAbbreviation {
Bg = 'bg',
Ar = 'ar',
Tr = 'tr',
Ko = 'ko',
}
export const LanguageAbbreviationMap = {
@@ -112,6 +113,7 @@ export const LanguageAbbreviationMap = {
[LanguageAbbreviation.Bg]: 'Български',
[LanguageAbbreviation.Ar]: 'العربية',
[LanguageAbbreviation.Tr]: 'Türkçe',
[LanguageAbbreviation.Ko]: '한국어',
};
export const LanguageTranslationMap = {
@@ -165,7 +167,7 @@ export enum FileMimeType {
Mp4 = 'video/mp4',
Json = 'application/json',
Md = 'text/markdown',
Mdx = 'text/markdown',
Mdx = 'text/mdx',
}
export const Domain = 'cloud.ragflow.io';

View File

@@ -27,6 +27,7 @@ const languageImports: Record<string, () => Promise<{ default: any }>> = {
[LanguageAbbreviation.Bg]: () => import('./bg'),
[LanguageAbbreviation.Ar]: () => import('./ar'),
[LanguageAbbreviation.Tr]: () => import('./tr'),
[LanguageAbbreviation.Ko]: () => import('./ko'),
};
const supportedLanguageCodes: Intl.UnicodeBCP47LocaleIdentifier[] =

View File

@@ -945,6 +945,7 @@ export default {
bulgarian: 'Búlgaro',
arabic: 'Árabe',
turkish: 'Turco',
korean: 'Coreano',
},
},
};

View File

@@ -1147,6 +1147,7 @@ export default {
bulgarian: 'Bulgaria',
arabic: 'Arab',
turkish: 'Turki',
korean: 'Korea',
},
},
};

View File

@@ -1209,6 +1209,7 @@ export default {
bulgarian: 'ブルガリア語',
arabic: 'アラビア語',
turkish: 'トルコ語',
korean: '韓国語',
},
},
};

3127
web/src/locales/ko.ts Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1209,6 +1209,7 @@ export default {
bulgarian: 'Búlgaro',
arabic: 'Árabe',
turkish: 'Turco',
korean: 'Coreano',
},
},
};

View File

@@ -1258,6 +1258,7 @@ export default {
bulgarian: 'Tiếng Bulgaria',
arabic: 'Tiếng Ả Rập',
turkish: 'Tiếng Thổ Nhĩ Kỳ',
korean: 'Tiếng Hàn',
},
},
};

View File

@@ -1294,6 +1294,7 @@ export default {
bulgarian: '保加利亞語',
arabic: '阿拉伯語',
turkish: '土耳其語',
korean: '韓語',
},
modal: {
okText: '確認',