What is Lokalio?
Lokalio automates translation of locale files in your repository. When developers push code changes, Lokalio detects new or modified translation strings, sends them to an AI for translation, and opens a pull request with the translated files — no manual export/import, no context switching.
Think of it as CI for your translations.
How it works
- Configure —
npx lokalio initscaffolds.lokalio.yamland a CI workflow - Push — developers push code with new/changed locale keys as usual
- Translate — Lokalio detects changed keys, sends them to the AI, and writes translations back to your target files
- Review — a pull request is opened with the translated files, ready for human review
Key Features
- Git-native workflow — translations are generated as pull requests in your existing repos. No hosted file storage, no platform lock-in.
- Format agnostic — supports JSON (flat and nested), YAML, Android XML, iOS
.strings, PO/POT, XLIFF, properties, and PHP arrays. - AI-powered — uses LLMs via OpenAI-compatible endpoints for high-quality translations with context-aware prompts.
- Placeholder preservation — variables, HTML tags, and template syntax (
{{name}},%s,<0>text</0>) are extracted before translation and reinserted after, so your code never breaks. - Two translation modes — Diff mode translates only keys changed in the current git range; Add/remove mode detects keys present in source but missing from target files.
- Context-aware — per-project glossary, tone guidelines, and AI instructions improve translation quality. All overridable per-run via a local
context.yaml. - Multi-format CI — GitHub Action (composite) and GitLab CI template included.
New to Lokalio?
Start with the Getting Started guide to scaffold your first project in under 5 minutes.
Explore the Docs
Getting Started
Scaffold your project, configure translation files, and run your first AI-powered translation.
Configuration
Full reference for .lokalio.yaml — source files, targets, modes, glossary, and multi-group setups.
CLI Reference
Commands, flags, and environment variables for the lokalio CLI.
CI/CD
Set up GitHub Actions or GitLab CI for automated translation on every push.
API Reference
Programmatic access — authentication, endpoints, request/response schemas, and error codes.