diff --git a/src/main/java/com/crowdin/cli/commands/actions/PreTranslateAction.java b/src/main/java/com/crowdin/cli/commands/actions/PreTranslateAction.java index 048a88efd..d914cf571 100644 --- a/src/main/java/com/crowdin/cli/commands/actions/PreTranslateAction.java +++ b/src/main/java/com/crowdin/cli/commands/actions/PreTranslateAction.java @@ -87,7 +87,7 @@ private List prepareLanguageIds(CrowdinProjectInfo projectInfo) { List projectLanguages = projectInfo.getProjectLanguages(false).stream() .map(Language::getId) .collect(Collectors.toList()); - if (languageIds.size() == 1 && BaseCli.ALL.equals(languageIds.get(0))) { + if (languageIds.size() == 1 && BaseCli.ALL.equalsIgnoreCase(languageIds.get(0))) { return projectLanguages; } else { String wrongLanguageIds = languageIds.stream() diff --git a/src/main/resources/messages/messages.properties b/src/main/resources/messages/messages.properties index 0dec83763..8c25f2d7a 100755 --- a/src/main/resources/messages/messages.properties +++ b/src/main/resources/messages/messages.properties @@ -321,7 +321,7 @@ crowdin.comment.resolve.id=Numeric ID of the string comment # CROWDIN PRE-TRANSLATE crowdin.pre-translate.usage.description=Pre-translate files via Machine Translation (MT) or Translation Memory (TM) crowdin.pre-translate.usage.customSynopsis=@|fg(green) crowdin pre-translate|@ [CONFIG OPTIONS] [OPTIONS] -crowdin.pre-translate.language=Languages to which pre-translation should be applied +crowdin.pre-translate.language=Languages to which pre-translation should be applied. Default: ALL crowdin.pre-translate.method=Defines pre-translation method. Supported values: mt, tm crowdin.pre-translate.engine-id=Machine Translation engine Identifier crowdin.pre-translate.auto-approve-option=Defines which translations added by TM pre-translation should be auto-approved. Supported values: all, except-auto-substituted, perfect-match-only. Default: none diff --git a/website/mantemplates/crowdin-pre-translate.adoc b/website/mantemplates/crowdin-pre-translate.adoc index 9db47ddd9..9b621b3b4 100644 --- a/website/mantemplates/crowdin-pre-translate.adoc +++ b/website/mantemplates/crowdin-pre-translate.adoc @@ -20,6 +20,7 @@ include::{includedir}/{command}.adoc[tag=picocli-generated-man-section-footer] 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. link:https://developer.crowdin.com/language-codes/[Crowdin Language Codes]. - 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