Skip to content

Commit

Permalink
docs: enhance the pre-translate command info
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-bodnar committed Jul 24, 2023
1 parent 4c03f2e commit dba427c
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions website/mantemplates/crowdin-pre-translate.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,15 @@ include::{includedir}/{command}.adoc[tag=picocli-generated-man-section-footer]

=== Notes

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

At first, it finds local source files that match the source configuration pattern. hen 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).
- 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).
- The `--engine-id` value you can find in the MT engine details (_Profile_ > _Machine translation_ for crowdin.com and _Dashboard_ > _Machine translation_ for Crowdin Enterprise)

=== Examples

----
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
----

0 comments on commit dba427c

Please sign in to comment.