weglot/Weglot Translate Action
Translate localization files (JSON/YAML) using your Weglot project
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| api-key | Weglot API key | yes | — |
| source-path | Path or glob to source file(s), e.g. locales/en.json or "locales/**/*.json" | yes | — |
| output-dir | Directory for translated files (default: same as source directory) | no | "" |
| output-mode | Output mode: "files" (write to disk) or "pr" (create a PR with changes) | no | files |
| languages | Comma-separated target language codes from your Weglot project (e.g. fr,de). Default: all enabled languages. | no | "" |
| translation-timeout | Max seconds to wait for queued LLM translations to resolve before failing. Default: 300. | no | 300 |
| github-token | Token for GitHub API and git push in PR mode (pass secrets.GITHUB_TOKEN or github.token) | no | "" |
Outputs
| name | description |
|---|---|
| output-path | Directory where translated files were written (files mode) |
| pr-branch | PR branch in pr mode: translations/<hex> from source-path, output-dir, and API key (not from languages) |
| pr-url | URL of the pull request (pr mode) |