Files
openworker/surfaces/gui/package.json
T
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

44 lines
1.1 KiB
JSON

{
"name": "openworker-gui",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview",
"test": "vitest run",
"e2e": "playwright test",
"e2e:ui": "playwright test --ui",
"e2e:live": "playwright test -c playwright.live.config.ts",
"tauri": "tauri"
},
"dependencies": {
"i18next": "^26.3.6",
"pdfjs-dist": "^4.10.38",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-i18next": "^17.0.11",
"react-markdown": "^10.1.0",
"remark-gfm": "^4.0.1",
"simple-icons": "^16.26.0",
"xlsx": "^0.18.5"
},
"devDependencies": {
"@playwright/test": "^1.61.1",
"@tauri-apps/cli": "^2.11.2",
"@testing-library/dom": "^10.4.1",
"@testing-library/react": "^16.3.2",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "^4.3.1",
"autoprefixer": "^10.5.2",
"jsdom": "^25.0.1",
"postcss": "^8.5.16",
"tailwindcss": "^3.4.19",
"typescript": "^5.5.3",
"vite": "^5.4.0",
"vitest": "^2.1.9"
}
}