Import & Export
Overview
Section titled “Overview”LokAI supports importing and exporting translation data in multiple file formats, making it easy to integrate with existing localization workflows and tools.
Supported Formats
Section titled “Supported Formats”- JSON — flat and nested key-value formats
- YAML — human-readable, popular in Rails and other frameworks
- PO / POT — GNU gettext format
- XLIFF — XML-based interchange format for translation tools
- CSV — spreadsheet-friendly bulk editing
Exporting Translations
Section titled “Exporting Translations”Export all translations for a project via the CLI or REST API.
lokai export --project my-app --format json --output ./localesYou can scope exports to specific languages, namespaces, or translation statuses (e.g. only approved translations).
Importing Translations
Section titled “Importing Translations”Import existing translation files to seed a new project or migrate from another tool.
lokai import --project my-app --format json --input ./localesLokAI will match incoming keys to existing keys by name. New keys will be created automatically unless --no-create is passed.
Tenant Exports
Section titled “Tenant Exports”Translations can be exported with tenant customizations applied, producing a version of the file tailored for a specific B2B customer.
lokai export --project my-app --tenant bigbank --format json --output ./locales/bigbankCI/CD Integration
Section titled “CI/CD Integration”See the GitHub Integration guide for automating import/export in your pipeline.