Skip to content

Import & Export

LokAI supports importing and exporting translation data in multiple file formats, making it easy to integrate with existing localization workflows and tools.

  • 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

Export all translations for a project via the CLI or REST API.

Terminal window
lokai export --project my-app --format json --output ./locales

You can scope exports to specific languages, namespaces, or translation statuses (e.g. only approved translations).

Import existing translation files to seed a new project or migrate from another tool.

Terminal window
lokai import --project my-app --format json --input ./locales

LokAI will match incoming keys to existing keys by name. New keys will be created automatically unless --no-create is passed.

Translations can be exported with tenant customizations applied, producing a version of the file tailored for a specific B2B customer.

Terminal window
lokai export --project my-app --tenant bigbank --format json --output ./locales/bigbank

See the GitHub Integration guide for automating import/export in your pipeline.