* `feat: added internationalization lib, added english labels` * `fixes from code review` * `feat: add crowdin github actions` * `fix: added support for i18n in testing. Fixed broken tests` * `fix: missing translations` * `removed unneded import` * `more components updated with missing translations` * `fixed lint issue` * `Refactor: updated how translations are scoped, updated all references` * `fixing broken tests` * `feat: added language switcher, updated some translations` * `fixed linting issues` * `reverting vite config` * `add english group id's to command palette` * `updated PR template for i18n`
31 lines
850 B
TypeScript
31 lines
850 B
TypeScript
import path from "node:path";
|
|
import react from "@vitejs/plugin-react";
|
|
import { defineConfig } from "vitest/config";
|
|
|
|
import { enableMapSet } from "immer";
|
|
enableMapSet();
|
|
export default defineConfig({
|
|
plugins: [
|
|
react(),
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
"@app": path.resolve(process.cwd(), "./src"),
|
|
"@core": path.resolve(process.cwd(), "./src/core"),
|
|
"@pages": path.resolve(process.cwd(), "./src/pages"),
|
|
"@components": path.resolve(process.cwd(), "./src/components"),
|
|
"@layouts": path.resolve(process.cwd(), "./src/layouts"),
|
|
},
|
|
},
|
|
test: {
|
|
environment: "happy-dom",
|
|
globals: true,
|
|
mockReset: true,
|
|
clearMocks: true,
|
|
restoreMocks: true,
|
|
root: path.resolve(process.cwd(), "./src"),
|
|
include: ["**/*.{test,spec}.{ts,tsx}"],
|
|
setupFiles: ["./src/tests/setupTests.ts"],
|
|
},
|
|
});
|