Bulk translation operation
Performs bulk translation operations. Two modes: `replace-file` deletes all existing translations for a file+language and re-inserts; `bulk-upsert` efficiently compares existing vs new translations and batches updates/inserts. Requires `canEditTranslations` permission.
Supabase Auth session cookie. Automatically set when users log in via the Movabase web app.
In: cookie
Path Parameters
Project ID
uuidRequest Body
application/json
Operation type
"replace-file" | "bulk-upsert"Target file name
length <= 256Target language code
Array of key-value pairs
Response Body
application/json
curl -X PUT "https://app.movabase.com/api/projects/497f6eca-6276-4993-bfeb-53cbbbba6f08/translations" \ -H "Content-Type: application/json" \ -d '{ "operation": "replace-file", "fileName": "string", "languageCode": "string", "translations": [ { "key": "string", "value": "string" } ] }'{
"success": true,
"inserted": 0,
"updated": 0
}Add language
Adds a new language to the project. Creates file_translation records for all existing files (and optionally additional file names). Defaults to `default.json` if no files exist. Requires `canEditTranslations` permission.
Connect Bitbucket repository
Connects a Bitbucket repository to the project. Tests the connection before saving. Requires `canEditProjects` permission.