v2

latestOpenAPI 3.1.12026-07-2613060964.2 KB

Add Translation

Upload or create a new translation file. The file content should be valid JSON following the translation file structure.

post/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")

Request body

localestring required

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

contentobject required

Translation key-value pairs in JSON format

Example request

{
  "locale": "fr.json"
}

Response

Translation file successfully updated

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. Namespace can be used to group translations by feature or module.

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"
}