From d36a6ded3bbc623a3fcad3c6e45b7b22ae9b6267 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Mon, 6 Jul 2026 04:53:05 +0300 Subject: feat(website): add japanese and simplified chinese docs with i18n, translation issue flow --- .github/workflows/issue-gate.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to '.github/workflows') diff --git a/.github/workflows/issue-gate.yml b/.github/workflows/issue-gate.yml index ff7a22d9..dd93e02b 100644 --- a/.github/workflows/issue-gate.yml +++ b/.github/workflows/issue-gate.yml @@ -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); -- cgit v1.2.3