From a6c9932e05a01cc0200049036b01306b1667c489 Mon Sep 17 00:00:00 2001 From: tpoisonooo Date: Mon, 22 Dec 2025 11:18:46 +0800 Subject: [PATCH] Add GitHub Actions workflow for translation --- .github/workflows/translator.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/translator.yml diff --git a/.github/workflows/translator.yml b/.github/workflows/translator.yml new file mode 100644 index 00000000..86fee889 --- /dev/null +++ b/.github/workflows/translator.yml @@ -0,0 +1,29 @@ +name: Translator +on: + issues: + types: [opened, edited] + issue_comment: + types: [created, edited] + discussion: + types: [created, edited] + discussion_comment: + types: [created, edited] + pull_request_target: + types: [opened, edited] + pull_request_review_comment: + types: [created, edited] + +jobs: + translate: + permissions: + issues: write + discussions: write + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: lizheming/github-translate-action@1.1.2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + IS_MODIFY_TITLE: true + APPEND_TRANSLATION: true