mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-23 23:04:23 +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',
|
||||
Français = 'fr-FR',
|
||||
简体中文 = 'zh-CN',
|
||||
繁體中文 = 'zh-TW',
|
||||
日本語 = 'ja-JP',
|
||||
'Português (Brasil)' = 'pt-BR',
|
||||
'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 trTR from '../../locale/languages/tr-tr.json';
|
||||
import zhCN from '../../locale/languages/zh-cn.json';
|
||||
import zhTW from '../../locale/languages/zh-tw.json';
|
||||
import { SupportedLocales } from './LocalUtil.interface';
|
||||
|
||||
export const languageSelectOptions = map(SupportedLocales, (value, key) => ({
|
||||
@ -46,6 +47,7 @@ export const getInitOptions = (): InitOptions => {
|
||||
'ko-KR': { translation: koKR },
|
||||
'fr-FR': { translation: frFR },
|
||||
'zh-CN': { translation: zhCN },
|
||||
'zh-TW': { translation: zhTW },
|
||||
'ja-JP': { translation: jaJP },
|
||||
'pt-BR': { translation: ptBR },
|
||||
'pt-PT': { translation: ptPT },
|
||||
@ -84,6 +86,7 @@ export const getCurrentLocaleForConstrue = () => {
|
||||
SupportedLocales['Português (Brasil)'],
|
||||
SupportedLocales['Português (Portugal)'],
|
||||
SupportedLocales.简体中文,
|
||||
SupportedLocales.繁體中文,
|
||||
].includes(i18next.resolvedLanguage as SupportedLocales)
|
||||
) {
|
||||
return i18next.resolvedLanguage.replaceAll('-', '_');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user