Date: 2026-01-15 00:00 Summary: Applied translation suggestions to i18n files and created backups
[question]
User requested: 自动把翻译修改建议应用到对应的 src/site/i18n/*.ts 文件。
[try to solve] Actions performed:
- Added a script
scripts/apply-i18n-updates.mjswhich contains the suggestedtool_*_descriptionupdates for all supported languages and backup logic. - Ran the script locally: it created timestamped backups for each modified i18n file and replaced/injected the suggested
tool_*_descriptionentries. - Files updated (originals backed up as
.bak.<timestamp>):src/site/i18n/en.tssrc/site/i18n/zh.tssrc/site/i18n/es.tssrc/site/i18n/fr.tssrc/site/i18n/de.tssrc/site/i18n/ru.tssrc/site/i18n/pt.tssrc/site/i18n/ja.tssrc/site/i18n/id.tssrc/site/i18n/ar.ts
Script added:
scripts/apply-i18n-updates.mjs— creates backups and updates i18n files with the recommended descriptions.
Notes & next steps:
- Please review the updated
src/site/i18n/*.tsfiles for language nuance and style; the updates are drafted and should be verified by native speakers. - Run the SEO validator to confirm warnings cleared:
npm run lint:seo
- Rebuild the static site to regenerate pages with updated descriptions:
npm run build:site
[actions]
- Created
scripts/apply-i18n-updates.mjs - Updated
src/site/i18n/*.ts(10 files) and created backupssrc/site/i18n/*.ts.bak.<timestamp> - Added dev-log
dev-logs/2026-01-15-应用翻译建议并更新i18n.md