feat: translations integrity validation

closes #7
This commit is contained in:
CDN 2025-02-03 22:22:07 +08:00
parent 25bd99abc5
commit 47cf6171c5
Signed by: CDN
GPG key ID: 0C656827F9F80080
14 changed files with 291 additions and 62 deletions

View file

@ -5,9 +5,10 @@
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build && tsx scripts/generate-rss.ts && tsx scripts/generate-sitemap.ts",
"build": "tsx scripts/check-translations.ts && vite build && tsx scripts/generate-rss.ts && tsx scripts/generate-sitemap.ts",
"lint": "eslint .",
"preview": "vite preview"
"preview": "vite preview",
"check-translations": "tsx scripts/check-translations.ts"
},
"dependencies": {
"@ant-design/icons": "^5.6.0",
@ -36,6 +37,7 @@
"@types/react-dom": "^18.3.5",
"@vitejs/plugin-react": "^4.3.4",
"autoprefixer": "^10.4.20",
"chalk": "^5.4.1",
"eslint": "^9.19.0",
"eslint-plugin-react-hooks": "^5.1.0",
"eslint-plugin-react-refresh": "^0.4.18",