From 675a8ce4a966ac462474c46b9a5c7d4952829a12 Mon Sep 17 00:00:00 2001 From: Rishi Mondal Date: Wed, 14 May 2025 15:05:50 +0530 Subject: [PATCH] Add test translation workflow (#2228) Signed-off-by: Rishi Mondal --- .github/workflows/translate-test.yml | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/translate-test.yml diff --git a/.github/workflows/translate-test.yml b/.github/workflows/translate-test.yml new file mode 100644 index 000000000..3a6a37e31 --- /dev/null +++ b/.github/workflows/translate-test.yml @@ -0,0 +1,29 @@ +name: 'Translate GitHub content into English' +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: actions/checkout@v3 + - uses: lizheming/github-translate-action@main + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + APPEND_TRANSLATION: true \ No newline at end of file