Skip to content

Add scope and re-translation options to Apply Pre-Translation #256

@andrii-bodnar

Description

@andrii-bodnar

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 (truescope: untranslated, falsescope: 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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions