Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add zh-TW Traditional Chinese locale for client #1282

Merged
merged 1 commit into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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