mirror of
https://github.com/andrewyng/openworker.git
synced 2026-11-15 14:48:42 +00:00
Introduces react-i18next across the GUI (fixes the frontend portion of #121): all user-facing strings in ~50 components move from hardcoded English literals to t() keys, with complete en and zh-Hans locale files under src/locales/. English remains the default; the language follows the system locale unless the user picks one explicitly in the new Settings > General language switcher. Vitest initializes i18n with the English resources so existing assertions keep passing.
14 lines
453 B
TypeScript
14 lines
453 B
TypeScript
import { defineConfig } from "vitest/config";
|
|
import react from "@vitejs/plugin-react";
|
|
|
|
// Standalone test config (kept separate from vite.config.ts so the production `vite build` is
|
|
// untouched). Reused by later frontend phases — add new `*.test.tsx` files under src/.
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
test: {
|
|
environment: "jsdom",
|
|
include: ["src/**/*.test.{ts,tsx}"],
|
|
setupFiles: ["./src/test-setup.ts"],
|
|
},
|
|
});
|