feat(website): add japanese and simplified chinese docs with i18n, translation issue flow

This commit is contained in:
Ogulcan Celik
2026-07-06 04:54:21 +03:00
parent b04c6496a8
commit d36a6ded3b
41 changed files with 6779 additions and 20 deletions
+10
View File
@@ -120,6 +120,16 @@ jobs:
}
const body = issue.body || '';
const translationConfirmationPattern = /^\s*-\s*\[[xX]\]\s*I confirm this is a translation issue in the herdr docs, not a bug report, feature request, or question\.\s*$/m;
const translationSections = ['### Page', '### Language', '### What is wrong'];
if (
translationConfirmationPattern.test(body) &&
translationSections.every((section) => body.includes(section))
) {
console.log(`#${issue.number} matches the translation issue template; leaving issue open`);
return;
}
const hasBugConfirmation = bugConfirmationPattern.test(body);
const hasBugTemplate = requiredSections.every((section) => body.includes(section));
const allowedHeadings = new Set(requiredSections);