CI/CD
The lokalio init command scaffolds a .gitlab-ci.yml snippet for GitLab.
Pipeline Configuration
stages:
- translate
lokalio-translate:
stage: translate
script:
- npx lokalio generate
variables:
LOKALIO_API_KEY: $LOKALIO_API_KEYSetup Steps
- Run
npx lokalio initand select GitLab - Add
LOKALIO_API_KEYto your project's CI/CD variables - Commit and push — the pipeline triggers on the next push
How It Differs from GitHub
The GitLab integration uses direct CLI invocation rather than a composite action. The CLI auto-detects the git range from GitLab's CI environment variables (CI_COMMIT_BEFORE_SHA..CI_COMMIT_SHA). All other behavior — translation branch, PR creation, [skip ci] commits — is identical.