Skip to main content

crowdin pre-translate


Pre-translate files via Machine Translation (MT) or Translation Memory (TM)


crowdin pre-translate [CONFIG OPTIONS] [OPTIONS]


-l, --language=
Languages to which pre-translation should be applied. Default: ALL

Defines pre-translation method. Supported values: mt, tm

Machine Translation engine Identifier

-b, --branch=
Specify branch name. Default: none

Defines which translations added by TM pre-translation should be auto-approved. Supported values: all, except-auto-substituted, perfect-match-only. Default: none

Adds translations even if the same translation already exists

Applies pre-translation for untranslated strings only

Applies pre-translation only for the strings with perfect match

Label identifier. Could be specified multiple times

-V, --version
Display version information and exit

-h, --help
Display help message and exit

Disable progress on executed command

-v, --verbose
Provide more information about the command execution

Disable colors and styles

-c, --config=
Specify a path to the configuration file. Default: crowdin.yml or crowdin.yaml

Specify a path to user-specific credentials

Provide plain, processable output

Config Options

-T, --token=
Personal access token required for authentication

Base URL of Crowdin server for API requests execution

Path to your project directory on a local machine

-i, --project-id=
Numeric ID of the project

-s, --source=
Path to the source files

-t, --translation=
Path to the translation files

Specify file name in Crowdin

Choose whether to save the directory hierarchy in the Crowdin project


Crowdin CLI uses the crowdin.yml configuration to Pre-Translate files.

  • At first, it finds local source files that match the source configuration pattern. Then CLI tries to find the corresponding files in the crowdin project. After that, CLI will request Pre-translation for the found file IDs (matching these files to local sources and configuration file).

  • -l, --language=language_code - defines the language to which pre-translation should be applied. By default, pre-translation is applied for all project’s target languages. Crowdin Language Codes.

  • The --engine-id value you can find in the MT engine details (Profile > Machine translation for and Dashboard > Machine translation for Crowdin Enterprise)


crowdin pre-translate -l fr -l uk --method tm
crowdin pre-translate -l fr --method mt --engine-id 5
crowdin pre-translate -l fr --method mt --engine-id 5 --branch main