CI/CD
Lokalio is designed to run in CI. On every push, it detects changed translation keys, sends them to the AI, and opens a pull request with the results.
Platform Support
| Platform | Integration | Setup |
|---|---|---|
| GitHub | Composite Action (lokalio/action@v1) | Automated via lokalio init |
| GitLab | Direct CLI invocation | Automated via lokalio init |
How It Works
- A push triggers the CI workflow
- The workflow checks out the repo with full git history
- Lokalio detects the commit range (
before..HEAD) - Changed keys are extracted and sent to the API
- Translations are written back to target files
- Results are force-pushed to a dedicated translation branch
- A pull request is opened (or updated if one already exists)
The translation branch is named lokalio/<source-branch-slug>. Commits include [skip ci] to prevent re-triggering the workflow and are authored as lokalio[bot] <bot@lokalio.dev>.