Enhance translation functionality and localization support: Updated translate-i18n.js to include new command line options for skipping and only translating English. Modified package.json to add new translation scripts. Improved localization files for multiple languages with better comments for clarity and accuracy, ensuring comprehensive support for internationalization.

This commit is contained in:
sebseb7
2025-07-16 06:17:27 +02:00
parent 280916224a
commit 8d69b0566b
12 changed files with 1457 additions and 1397 deletions

View File

@@ -15,7 +15,9 @@
"prerender:prod": "cross-env NODE_ENV=production node prerender.cjs",
"build:prerender": "npm run build:client && npm run prerender:prod",
"translate": "node translate-i18n.js",
"translate:english": "node -e \"require('./translate-i18n.js').translateToEnglish()\""
"translate:english": "node translate-i18n.js --only-english",
"translate:skip-english": "node translate-i18n.js --skip-english",
"translate:others": "node translate-i18n.js --skip-english"
},
"keywords": [],
"author": "",