eventonight/Translate i18n Files
Automatically translate JS/TS localization files with Python and deep-translator
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| source | Source language code (e.g., en) | yes | — |
| targets | Comma-separated target languages (e.g., it,fr) | yes | — |
| input_file | Path to the JS/TS file to translate (e.g., i18n/locale) | yes | — |
| previous_head | Git commit hash to compare changes against | no | ${{ github.event.before }} |
| current_head | Current Git commit hash | no | ${{ github.sha }} |
| evaluate_changes | Check if input file has changes respect to the previous head before translating | no | true |
| github_token | GitHub token for authentication | no | ${{ github.token }} |
| node_version | Node.js version to use (default 20) | no | 20 |
| npm_working_directory | Path to the folder where npm commands should run | no | . |
| pre_commit_npm_command | Optional npm command to run pre-commit (e.g. 'lint' or 'lint:fix') | no | "" |
| commit_message | Commit message for the translation changes | no | chore(i18n): auto-translate i18n files [skip ci] |
| check_only | If true, only check that all translation keys are present without translating or committing. Fails if any key is missing. | no | false |
Outputs
no outputs