diff --git a/.github/workflows/translator.yml b/.github/workflows/translator.yml new file mode 100644 index 0000000..6046e68 --- /dev/null +++ b/.github/workflows/translator.yml @@ -0,0 +1,29 @@ +name: 'translator' +on: + issues: + types: [opened] + issue_comment: + types: [created] + discussion: + types: [created] + discussion_comment: + types: [created] + pull_request_target: + types: [opened] + pull_request_review_comment: + types: [created] + +jobs: + translate: + permissions: + issues: write + discussions: write + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: izhangzhihao/github-translate-action@main + env: + GITHUB_TOKEN: ${{ secrets.BOT_PAT }} + with: + IS_MODIFY_TITLE: true + APPEND_TRANSLATION: true