CI/CD
The lokalio init command scaffolds a workflow at .github/workflows/lokalio.yml.
Workflow File
name: Lokalio Translation
on:
push:
branches: ["**"]
jobs:
translate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Lokalio Translate
uses: lokalio/action@v1
with:
api_key: ${{ secrets.LOKALIO_API_KEY }}Setup Steps
- Run
npx lokalio initand select GitHub - Add
LOKALIO_API_KEYto your repository's GitHub Actions secrets - Commit and push — the workflow triggers on the next push
Action Inputs
| Input | Required | Description |
|---|---|---|
api_key | Yes | Lokalio API key |
The composite action wraps the CLI, handling checkout, git user configuration, GITHUB_TOKEN authentication, and PR management automatically. Commits are authored as lokalio[bot].