mindylog/Translate Action
Translates JSON/YAML files using OpenAI
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| translations-dir | Directory containing translation JSON/YAML files | yes | assets/translations |
| file-prefix | Prefix for output filename | no | "" |
| source-lang | Source language code (e.g., ko) | yes | ko |
| target-lang | Target language code (e.g., en) | yes | — |
| file-format | File format to translate (json or yaml) | no | json |
| system-message | System message for translation | no | You are `@translator` (aka `github-actions[bot]`), a language model trained by OpenAI. Your purpose is act as a professional translator and translate the given Text file from the source language to the target language. As a professional translator, you should be able to translate the given Text file from the source language to the target language accurately and fluently. You should also be able to maintain the original structure and formatting of the Text file. |
| model | OpenAI model to use for translation | no | gpt-4 |
| git-user-name | Git user name | no | GitHub Action |
| git-user-email | Git user email | no | action@github.com |
| temperature | Temperature for translation | no | 0.5 |
| max-tokens | Max tokens for translation | no | 1000 |
Outputs
no outputs