chore: bundle translations at build time

This commit is contained in:
Ibrahima G. Coulibaly 2025-07-14 15:26:41 +01:00
commit 58dc97c920
5 changed files with 732 additions and 11 deletions

View file

@ -14,7 +14,9 @@
},
"scripts": {
"dev": "vite",
"prebuild": "npm run download-translations",
"build": "tsc && vite build",
"download-translations": "locize download --project-id e7156a3e-66fb-4035-a0f0-cebf1c63a3ba --api-key $LOCIZE_API_KEY --path ./public/locales",
"serve": "vite preview",
"test": "vitest",
"test:e2e": "playwright test",
@ -51,6 +53,7 @@
"fast-xml-parser": "^5.2.5",
"formik": "^2.4.6",
"i18next": "^25.3.2",
"i18next-http-backend": "^3.0.2",
"i18next-locize-backend": "^7.0.4",
"jimp": "^0.22.12",
"js-quantities": "^1.8.0",
@ -107,6 +110,7 @@
"eslint-plugin-tailwindcss": "^3.17.0",
"happy-dom": "^12.10.3",
"husky": "^9.0.11",
"locize-cli": "^10.1.1",
"postcss": "^8.4.38",
"prettier": "3.1.1",
"start-server-and-test": "^2.0.4",