Add traditionalChinese option in the menu
Update traditionalChinese translation
This commit is contained in:
parent
4a56a72bc9
commit
7d55bb58a4
|
@ -1851,6 +1851,7 @@ enum LanguageTranslation {
|
||||||
Polish,
|
Polish,
|
||||||
German,
|
German,
|
||||||
Russian,
|
Russian,
|
||||||
|
TraditionalChinese,
|
||||||
}
|
}
|
||||||
|
|
||||||
type UserPreferences {
|
type UserPreferences {
|
||||||
|
|
|
@ -231,6 +231,7 @@ enum LanguageTranslation {
|
||||||
Polish,
|
Polish,
|
||||||
German,
|
German,
|
||||||
Russian,
|
Russian,
|
||||||
|
TraditionalChinese,
|
||||||
}
|
}
|
||||||
|
|
||||||
type UserPreferences {
|
type UserPreferences {
|
||||||
|
|
|
@ -26,7 +26,13 @@ const languagePreferences = [
|
||||||
{ key: 6, label: 'polski', flag: 'pl', value: LanguageTranslation.Polish },
|
{ key: 6, label: 'polski', flag: 'pl', value: LanguageTranslation.Polish },
|
||||||
{ key: 7, label: 'Italiano', flag: 'it', value: LanguageTranslation.Italian },
|
{ key: 7, label: 'Italiano', flag: 'it', value: LanguageTranslation.Italian },
|
||||||
{ key: 8, label: 'Deutsch', flag: 'de', value: LanguageTranslation.German },
|
{ key: 8, label: 'Deutsch', flag: 'de', value: LanguageTranslation.German },
|
||||||
{ key: 8, label: 'Русский', flag: 'ru', value: LanguageTranslation.Russian },
|
{ key: 9, label: 'Русский', flag: 'ru', value: LanguageTranslation.Russian },
|
||||||
|
{
|
||||||
|
key: 10,
|
||||||
|
label: '繁體中文',
|
||||||
|
flag: 'zh-HK',
|
||||||
|
value: LanguageTranslation.TraditionalChinese,
|
||||||
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
const CHANGE_USER_PREFERENCES = gql`
|
const CHANGE_USER_PREFERENCES = gql`
|
||||||
|
|
|
@ -161,7 +161,7 @@
|
||||||
"title": "刪除使用者"
|
"title": "刪除使用者"
|
||||||
},
|
},
|
||||||
"password_reset": {
|
"password_reset": {
|
||||||
"description": "更改密碼 for <1></1>",
|
"description": "更改 <1>{{username}}</1> 的密碼",
|
||||||
"form": {
|
"form": {
|
||||||
"label": "新密碼",
|
"label": "新密碼",
|
||||||
"placeholder": "密碼",
|
"placeholder": "密碼",
|
||||||
|
@ -213,11 +213,11 @@
|
||||||
},
|
},
|
||||||
"download": {
|
"download": {
|
||||||
"filesize": {
|
"filesize": {
|
||||||
"byte": "",
|
"byte": null,
|
||||||
"giga_byte": "",
|
"giga_byte": null,
|
||||||
"kilo_byte": "",
|
"kilo_byte": null,
|
||||||
"mega_byte": "",
|
"mega_byte": null,
|
||||||
"tera_byte": "",
|
"tera_byte": null,
|
||||||
"byte_0": null,
|
"byte_0": null,
|
||||||
"byte_1": null,
|
"byte_1": null,
|
||||||
"byte_2": null,
|
"byte_2": null,
|
||||||
|
@ -258,15 +258,15 @@
|
||||||
},
|
},
|
||||||
"flash": {
|
"flash": {
|
||||||
"auto": "自動",
|
"auto": "自動",
|
||||||
"did_not_fire": "Did not fire",
|
"did_not_fire": null,
|
||||||
"fired": "Fired",
|
"fired": null,
|
||||||
"no_flash": "No Flash",
|
"no_flash": null,
|
||||||
"no_flash_function": "No flash function",
|
"no_flash_function": null,
|
||||||
"off": "關閉",
|
"off": "關閉",
|
||||||
"on": "使用",
|
"on": "使用",
|
||||||
"red_eye_reduction": "減輕紅眼",
|
"red_eye_reduction": "減輕紅眼",
|
||||||
"return_detected": "Return detected",
|
"return_detected": null,
|
||||||
"return_not_detected": "Return not detected"
|
"return_not_detected": null
|
||||||
},
|
},
|
||||||
"name": {
|
"name": {
|
||||||
"aperture": "光圈",
|
"aperture": "光圈",
|
||||||
|
@ -295,7 +295,7 @@
|
||||||
"sidemenu": {
|
"sidemenu": {
|
||||||
"albums": "相簿",
|
"albums": "相簿",
|
||||||
"people": "人物",
|
"people": "人物",
|
||||||
"photos": "相片",
|
"photos": "時間線",
|
||||||
"places": "地點",
|
"places": "地點",
|
||||||
"settings": "設定"
|
"settings": "設定"
|
||||||
},
|
},
|
|
@ -112,6 +112,14 @@ export const loadTranslations = () => {
|
||||||
i18n.changeLanguage('ru')
|
i18n.changeLanguage('ru')
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
|
case LanguageTranslation.TraditionalChinese:
|
||||||
|
import('./extractedTranslations/zh-HK/translation.json').then(
|
||||||
|
traditionalChinese => {
|
||||||
|
i18n.addResourceBundle('zh-HK', 'translation', traditionalChinese)
|
||||||
|
i18n.changeLanguage('zh-HK')
|
||||||
|
}
|
||||||
|
)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
exhaustiveCheck(language)
|
exhaustiveCheck(language)
|
||||||
|
|
Loading…
Reference in New Issue