GitHub Action for translate issues to English
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.
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.
match-languages
Match languages which will be translate. Support language. default iscmn
.min-match-percent
The percent of match languages needs to be greater than this percent, range is [0 ~ 1). default is0
.modify-title
Should modify issues title. default isfalse
.modify-body
Should create comment to translate issues body. default isfalse
.modify-comment
Should create comment to translate issues comment. default isfalse
.comment-note
Bot reply template content. default is''
.