Skip to content

a631807682/issues-translator

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

issues-translator

GitHub Action for translate issues to English

build-test

Desc

Different from this project issues-translate-action The project does not try to guess user's language, because Issues usually contain multiple languages, and the project determines whether translation is required by match-languages which user config.

Usage

name: 'issues-translator'
on:
  issue_comment:
    types: [created]
  issues:
    types: [opened]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: a631807682/issues-translator@v1.2.1
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}
          match-languages: cmn,rus
          min-match-percent: 0
          modify-title: true
          modify-body: true
          modify-comment: true
          comment-note: Bot detected the issue body's language is not English, translate it automatically.
  1. match-languages Match languages which will be translate. Support language. default is cmn.
  2. min-match-percent The percent of match languages needs to be greater than this percent, range is [0 ~ 1). default is 0.
  3. modify-title Should modify issues title. default is false.
  4. modify-body Should create comment to translate issues body. default is false.
  5. modify-comment Should create comment to translate issues comment. default is false.
  6. comment-note Bot reply template content. default is ''.

Preview

sample

About

GitHub Action for translate issues to English

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published