Skip to content

Commit

Permalink
added chinese locale
Browse files Browse the repository at this point in the history
  • Loading branch information
Specy committed May 10, 2024
1 parent 2249bf7 commit 00e947c
Show file tree
Hide file tree
Showing 4 changed files with 650 additions and 3 deletions.
2 changes: 1 addition & 1 deletion public/service-worker.js

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion src/i18n/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {i18n_en} from '$i18n/locales/en'
import {i18n_it} from "$i18n/locales/it";
import {i18n_test} from "$i18n/locales/test/locale-test";
import {IS_DEV} from "$config";
import {i18n_zh} from "$i18n/locales/zh";

export type EngI18n = typeof i18n_en

Expand All @@ -26,11 +27,12 @@ i18next
.init({
debug: IS_DEV,
pluralSeparator: '+',
fallbackLng: ['en', 'it'], //TODO not sure exactly how this needs to be set up to load all languages
fallbackLng: ['en', 'it', 'zh'], //TODO not sure exactly how this needs to be set up to load all languages
defaultNS,
resources: {
en: i18n_en,
it: i18n_it,
zh: i18n_zh,
}
});
export const i18n = i18next;
1 change: 0 additions & 1 deletion src/i18n/locales/en/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -646,4 +646,3 @@ export const i18n_en = {

} as const

//repeated keys are:
Loading

0 comments on commit 00e947c

Please sign in to comment.