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:
chaoming-tech 2025-08-08 20:48:49 +08:00 committed by Chirag Madlani
parent 98c139a119
commit 3ff527c2ee
3 changed files with 2553 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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',

View File

@ -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('-', '_');