Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
Add zh-TW Traditional Chinese locale for client (#1282)
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterDaveHello authored Oct 18, 2024
1 parent 1c110d1 commit f4a4a12
Show file tree
Hide file tree
Showing 5 changed files with 552 additions and 2 deletions.
1 change: 1 addition & 0 deletions client/src/consts/general.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const localesMap: Record<LocaleType, { name: string; icon: string }> = {
zhCN: { name: '简体中文', icon: '🇨🇳' },
es: { name: 'Español', icon: '🇪🇸' },
it: { name: 'Italiano', icon: '🇮🇹' },
zhTW: { name: '繁體中文', icon: '🇹🇼' },
};

export const repoStatusMap = {
Expand Down
4 changes: 4 additions & 0 deletions client/src/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import ja from './locales/ja.json';
import zhCN from './locales/zh-CN.json';
import es from './locales/es.json';
import it from './locales/it.json';
import zhTW from './locales/zh-TW.json';
import { getPlainFromStorage, LANGUAGE_KEY } from './services/storage';

// the translations
Expand All @@ -27,6 +28,9 @@ const resources = {
it: {
translation: it,
},
zhTW: {
translation: zhTW,
},
};

i18n
Expand Down
Loading

0 comments on commit f4a4a12

Please sign in to comment.