Files
openworker/surfaces/gui/vitest.config.ts
malin1997 6ff0f0fac9 gui: add i18n infrastructure with English and Chinese locales
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.
2026-07-25 22:19:40 +08:00

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"],
},
});