[i18n] Fix ko translation schema (#1877)

This commit is contained in:
Chenlei Hu
2024-12-11 11:38:00 -08:00
committed by GitHub
parent 0c511d08e6
commit 9e61d1509f
2 changed files with 28 additions and 9 deletions

View File

@@ -5,18 +5,20 @@ import ru from './locales/ru/main.json'
import ja from './locales/ja/main.json'
import ko from './locales/ko/main.json'
const messages: Record<string, typeof en> = {
en,
zh,
ru,
ja,
ko
}
export const i18n = createI18n({
// Must set `false`, as Vue I18n Legacy API is for Vue 2
legacy: false,
locale: navigator.language.split('-')[0] || 'en',
fallbackLocale: 'en',
messages: {
en,
zh,
ru,
ja,
ko
},
messages,
// Ignore warnings for locale options as each option is in its own language.
// e.g. "English", "中文", "Русский", "日本語", "한국어"
missingWarn: /^(?!settingsDialog\.Comfy_Locale\.options\.).+/,

View File

@@ -1,5 +1,13 @@
{
"color": "색상",
"color": {
"blue": "파란색",
"custom": "사용자 정의",
"default": "기본값",
"green": "초록색",
"pink": "분홍색",
"red": "빨간색",
"yellow": "노란색"
},
"dataTypes": {
"AUDIO": "오디오",
"BOOLEAN": "부울",
@@ -127,7 +135,16 @@
"create": "그룹 노드 만들기",
"enterName": "이름 입력"
},
"icon": "아이콘",
"icon": {
"bookmark": "북마크",
"box": "상자",
"briefcase": "서류가방",
"file": "파일",
"folder": "폴더",
"heart": "하트",
"inbox": "받은 편지함",
"star": "별"
},
"install": {
"appDataLocationTooltip": "ComfyUI의 앱 데이터 디렉토리. 저장소:\n- 로그\n- 서버 구성",
"appPathLocationTooltip": "ComfyUI의 앱 에셋 디렉토리. ComfyUI 코드 및 에셋을 저장합니다.",