feat(i18n): add Simplified Chinese (zh-CN) translations

This commit is contained in:
Yuuenn
2025-09-07 17:17:02 +03:00
parent 26203640a4
commit 83b6f71867
2 changed files with 5 additions and 1 deletions

View File

@@ -12,6 +12,9 @@ vi.mock("@/locales/fr-FR.json", () => ({}));
vi.mock("@/locales/pt-BR.json", () => ({}));
vi.mock("@/locales/pt-PT.json", () => ({}));
vi.mock("@/locales/zh-Hant-TW.json", () => ({}));
vi.mock("@/locales/ro-RO.json", () => ({}));
vi.mock("@/locales/ja-JP.json", () => ({}));
vi.mock("@/locales/zh-CN.json", () => ({}));
describe("Tolgee Configuration", () => {
beforeEach(() => {
@@ -37,6 +40,7 @@ describe("Tolgee Configuration", () => {
"zh-Hant-TW",
"ro-RO",
"ja-JP",
"zh-CN",
]);
});
});

View File

@@ -4,7 +4,7 @@ import { DevTools, Tolgee } from "@tolgee/web";
const apiKey = process.env.NEXT_PUBLIC_TOLGEE_API_KEY;
const apiUrl = process.env.NEXT_PUBLIC_TOLGEE_API_URL;
export const ALL_LANGUAGES = ["en-US", "de-DE", "fr-FR", "pt-BR", "pt-PT", "zh-Hant-TW", "ro-RO", "ja-JP"];
export const ALL_LANGUAGES = ["en-US", "de-DE", "fr-FR", "pt-BR", "pt-PT", "zh-Hant-TW", "ro-RO", "ja-JP", "zh-CN"];
export const DEFAULT_LANGUAGE = "en-US";