mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-24 23:34:51 +00:00
Add Traditional Chinese translation (#22838)
Co-authored-by: 27014 <howard.zhang@foxconn.com> Co-authored-by: Chirag Madlani <12962843+chirag-madlani@users.noreply.github.com> (cherry picked from commit 433546238ea565c519ae10ec989ca9241f64025a)
This commit is contained in:
parent
98c139a119
commit
3ff527c2ee
File diff suppressed because it is too large
Load Diff
@ -16,6 +16,7 @@ export enum SupportedLocales {
|
|||||||
한국어 = 'ko-KR',
|
한국어 = 'ko-KR',
|
||||||
Français = 'fr-FR',
|
Français = 'fr-FR',
|
||||||
简体中文 = 'zh-CN',
|
简体中文 = 'zh-CN',
|
||||||
|
繁體中文 = 'zh-TW',
|
||||||
日本語 = 'ja-JP',
|
日本語 = 'ja-JP',
|
||||||
'Português (Brasil)' = 'pt-BR',
|
'Português (Brasil)' = 'pt-BR',
|
||||||
'Português (Portugal)' = 'pt-PT',
|
'Português (Portugal)' = 'pt-PT',
|
||||||
|
|||||||
@ -30,6 +30,7 @@ import ruRU from '../../locale/languages/ru-ru.json';
|
|||||||
import thTH from '../../locale/languages/th-th.json';
|
import thTH from '../../locale/languages/th-th.json';
|
||||||
import trTR from '../../locale/languages/tr-tr.json';
|
import trTR from '../../locale/languages/tr-tr.json';
|
||||||
import zhCN from '../../locale/languages/zh-cn.json';
|
import zhCN from '../../locale/languages/zh-cn.json';
|
||||||
|
import zhTW from '../../locale/languages/zh-tw.json';
|
||||||
import { SupportedLocales } from './LocalUtil.interface';
|
import { SupportedLocales } from './LocalUtil.interface';
|
||||||
|
|
||||||
export const languageSelectOptions = map(SupportedLocales, (value, key) => ({
|
export const languageSelectOptions = map(SupportedLocales, (value, key) => ({
|
||||||
@ -46,6 +47,7 @@ export const getInitOptions = (): InitOptions => {
|
|||||||
'ko-KR': { translation: koKR },
|
'ko-KR': { translation: koKR },
|
||||||
'fr-FR': { translation: frFR },
|
'fr-FR': { translation: frFR },
|
||||||
'zh-CN': { translation: zhCN },
|
'zh-CN': { translation: zhCN },
|
||||||
|
'zh-TW': { translation: zhTW },
|
||||||
'ja-JP': { translation: jaJP },
|
'ja-JP': { translation: jaJP },
|
||||||
'pt-BR': { translation: ptBR },
|
'pt-BR': { translation: ptBR },
|
||||||
'pt-PT': { translation: ptPT },
|
'pt-PT': { translation: ptPT },
|
||||||
@ -84,6 +86,7 @@ export const getCurrentLocaleForConstrue = () => {
|
|||||||
SupportedLocales['Português (Brasil)'],
|
SupportedLocales['Português (Brasil)'],
|
||||||
SupportedLocales['Português (Portugal)'],
|
SupportedLocales['Português (Portugal)'],
|
||||||
SupportedLocales.简体中文,
|
SupportedLocales.简体中文,
|
||||||
|
SupportedLocales.繁體中文,
|
||||||
].includes(i18next.resolvedLanguage as SupportedLocales)
|
].includes(i18next.resolvedLanguage as SupportedLocales)
|
||||||
) {
|
) {
|
||||||
return i18next.resolvedLanguage.replaceAll('-', '_');
|
return i18next.resolvedLanguage.replaceAll('-', '_');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user