Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/a631807682/issues-translator
GitHub Action for translate issues to English
https://github.com/a631807682/issues-translator
Last synced: 16 days ago
JSON representation
GitHub Action for translate issues to English
- Host: GitHub
- URL: https://github.com/a631807682/issues-translator
- Owner: a631807682
- License: mit
- Created: 2022-03-31T10:00:37.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-15T04:33:51.000Z (almost 2 years ago)
- Last Synced: 2024-04-23T23:14:34.333Z (2 months ago)
- Language: TypeScript
- Homepage:
- Size: 2.09 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Lists
- awesome-stars - issues-translator
README
# issues-translator
GitHub Action for translate issues to English
[![build-test](https://github.com/a631807682/issues-translator/workflows/build-test/badge.svg?branch=main 'test status')](https://github.com/a631807682/issues-translator/actions)
## Desc
Different from this project [issues-translate-action](https://github.com/usthe/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
```yaml
name: 'issues-translator'
on:
issue_comment:
types: [created]
issues:
types: [opened]jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: a631807682/[email protected]
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](Language.md). 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](sample.jpg)