mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-02 16:55:42 +08:00
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:
@@ -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';
|
||||
|
||||
@@ -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[] =
|
||||
|
||||
@@ -945,6 +945,7 @@ export default {
|
||||
bulgarian: 'Búlgaro',
|
||||
arabic: 'Árabe',
|
||||
turkish: 'Turco',
|
||||
korean: 'Coreano',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
@@ -1147,6 +1147,7 @@ export default {
|
||||
bulgarian: 'Bulgaria',
|
||||
arabic: 'Arab',
|
||||
turkish: 'Turki',
|
||||
korean: 'Korea',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
@@ -1209,6 +1209,7 @@ export default {
|
||||
bulgarian: 'ブルガリア語',
|
||||
arabic: 'アラビア語',
|
||||
turkish: 'トルコ語',
|
||||
korean: '韓国語',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
3127
web/src/locales/ko.ts
Normal file
3127
web/src/locales/ko.ts
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1209,6 +1209,7 @@ export default {
|
||||
bulgarian: 'Búlgaro',
|
||||
arabic: 'Árabe',
|
||||
turkish: 'Turco',
|
||||
korean: 'Coreano',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
@@ -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',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
@@ -1294,6 +1294,7 @@ export default {
|
||||
bulgarian: '保加利亞語',
|
||||
arabic: '阿拉伯語',
|
||||
turkish: '土耳其語',
|
||||
korean: '韓語',
|
||||
},
|
||||
modal: {
|
||||
okText: '確認',
|
||||
|
||||
Reference in New Issue
Block a user