Skip to main content
The import and export endpoints let you move translation data between Entri and your codebase or third-party tools. Import is useful for onboarding an existing project — you can send your current translation file contents and Entri will parse them, create the corresponding keys, and populate translations. Export lets you download the finished translations in the exact file format your application expects.

Supported Formats

Entri supports the following file formats for both import and export:

Endpoints

List Supported Formats

Returns the list of format identifiers supported by the API:
Response: The endpoint returns a plain JSON array of format strings:

Import Translations

Send translation file content as a JSON body. The language field identifies which language the content is for. The format field tells Entri how to parse it. The content field should contain the raw file content as a string.
Request body: Setting overwrite: false means existing translations will not be replaced — only new keys will be created and missing translations will be added. Response:

Export Translations

Downloads translations for a single language as a file in the requested format:
The response body is the raw file content with Content-Type: application/octet-stream and a Content-Disposition header specifying the filename. Additional response headers:
Export does not support filtering by translation status. All translations for the specified language are included in the export.

Key Notes

  • Import jobs are processed synchronously. The response is returned once processing is complete.
  • Namespace support is available for JSON formats: keys can be grouped under a namespace prefix (for example common.nav.home).
  • The Entri CLI wraps these endpoints with entri push (import) and entri pull (export), handling file pattern matching automatically.
For day-to-day CI/CD sync workflows, the CLI is usually more convenient than the raw import/export API. Use the API directly when you need fine-grained control over the import behavior or when integrating with a custom toolchain.