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

Lists

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)