v2

latestOpenAPI 3.1.12026-07-2613060964.2 KB

Get Translation

Retrieve the content of a translation file for a specific locale file.

get/v1/{workspace}/translation/content/{locale_file}/

Path parameters

workspacestring required

Workspace slug (staging, production, etc.)

locale_filestring required

Locale file name (e.g., "fr.json", "es-MX.json", "auth.en.json")

Query parameters

mode'draft' | 'live'

Mode to fetch translation (draft or live). By default, draft translation is returned.

Response

Successfully retrieved translation content

filenamestring

Name of the translation file

localestring

Locale code for the translation file

locale_namestring

Human-readable name of the locale

namespacestring nullable

Namespace for the translation file, if any

action'added' | 'updated' | 'deleted' | 'unchanged'

action done in the version compared to last commit.

updated_atstring date-time

When the translation file was last updated

contentobject

Translation key-value pairs

Example response

{
  "filename": "fr.json",
  "locale": "fr",
  "locale_name": "French",
  "action": "updated"
}