Skip to content

Commit

Permalink
fix(i18n): added traditional Chinese language translation (#356)
Browse files Browse the repository at this point in the history
* feat: added traditional chinese language translation

* feat: added traditional chinese language translation

---------

Co-authored-by: Jonathan Fishner <jonathanfishner11@gmail.com>
  • Loading branch information
chengtc-dev and johnnyfish authored Nov 12, 2024
1 parent e3129ce commit 123f40f
Show file tree
Hide file tree
Showing 2 changed files with 380 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/i18n/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { pt_BR, pt_BRMetadata } from './locales/pt_BR';
import { uk, ukMetadata } from './locales/uk';
import { ru, ruMetadata } from './locales/ru';
import { zh_CN, zh_CNMetadata } from './locales/zh_CN';
import { zh_TW, zh_TWMetadata } from './locales/zh_TW';

export const languages: LanguageMetadata[] = [
enMetadata,
Expand All @@ -25,6 +26,7 @@ export const languages: LanguageMetadata[] = [
ukMetadata,
ruMetadata,
zh_CNMetadata,
zh_TWMetadata,
];

const resources = {
Expand All @@ -39,6 +41,7 @@ const resources = {
uk,
ru,
zh_CN,
zh_TW,
};

i18n.use(initReactI18next).init({
Expand Down
Loading

0 comments on commit 123f40f

Please sign in to comment.