PUT
/v2/projects/{projectId}/keys/{keyId}/auto-translateTrigger automatic translation for a localization key
Triggers automatic translation for a localization key using enabled machine-translation or translation-memory methods. Set at least one of useMachineTranslation or useTranslationMemory to true; when languages is omitted, only untranslated languages are processed. Existing translations for the selected languages are replaced with the generated results.
keyIdintegerrequired
The int64 identifier of the localization key to translate.
projectIdintegerrequired
The int64 identifier of the project containing the key.
languagesarray<string>optional
Language tags to translate. Defaults to untranslated languages when omitted.
useMachineTranslationbooleanoptional
Whether to use machine translation. Set this or `useTranslationMemory` to true to trigger translation.
useTranslationMemorybooleanoptional
Whether to use translation memory. Set this or `useMachineTranslation` to true to trigger translation.
200Confirms that the automatic translation request completed.
400Returned when the request is invalid, including when neither machine translation nor translation memory is enabled.
codestringrequired
paramsarray<object>optional
401Returned when the request has no valid authentication.
codestringrequired
paramsarray<object>optional
403Returned when the authenticated user does not have permission to translate the key.
codestringrequired
paramsarray<object>optional
404Returned when the project or key cannot be found.
codestringrequired
paramsarray<object>optional
Error handling
A 400 is returned when the request is invalid, including when neither translation method is enabled. A 401 is returned when authentication is missing or invalid. A 403 is returned when the authenticated user lacks access. A 404 is returned when the project or key cannot be found. The keyId path parameter and projectId path parameter must identify the key and its project.