The Crowdin API extends the Apply Pre-Translation (api.projects.pre-translations.post) request with re-translation controls in both Crowdin and Crowdin Enterprise. API client libraries should expose the new fields.
New fields:
scope — which strings to apply pre-translation to: untranslated (default), translated, or all.
translationModifiedBefore — re-translate only if the current translation was modified before this date (has effect when scope is translated or all).
replaceTranslationsOption — whether to replace existing translations: none (default), autoTranslated, or all.
resetApprovalStatus — remove approval on existing translations when applying pre-translations.
Deprecated:
translateUntranslatedOnly is deprecated in favor of scope (true → scope: untranslated, false → scope: all) and cannot be combined with scope in the same request.
The fields carry mutual-exclusion constraints (e.g. resetApprovalStatus requires scope to be translated/all and cannot be combined with skipApprovedTranslations or autoApproveOption); see the API docs for the full rules.
References:
The Crowdin API extends the Apply Pre-Translation (
api.projects.pre-translations.post) request with re-translation controls in both Crowdin and Crowdin Enterprise. API client libraries should expose the new fields.New fields:
scope— which strings to apply pre-translation to:untranslated(default),translated, orall.translationModifiedBefore— re-translate only if the current translation was modified before this date (has effect whenscopeistranslatedorall).replaceTranslationsOption— whether to replace existing translations:none(default),autoTranslated, orall.resetApprovalStatus— remove approval on existing translations when applying pre-translations.Deprecated:
translateUntranslatedOnlyis deprecated in favor ofscope(true→scope: untranslated,false→scope: all) and cannot be combined withscopein the same request.The fields carry mutual-exclusion constraints (e.g.
resetApprovalStatusrequiresscopeto betranslated/alland cannot be combined withskipApprovedTranslationsorautoApproveOption); see the API docs for the full rules.References: