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

  1. Run npx lokalio init and select GitHub
  2. Add LOKALIO_API_KEY to your repository's GitHub Actions secrets
  3. Commit and push — the workflow triggers on the next push

Action Inputs

InputRequiredDescription
api_keyYesLokalio 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].