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 18d901e9..f0974532 100644 --- a/src/main/java/com/crowdin/cli/commands/actions/PreTranslateAction.java +++ b/src/main/java/com/crowdin/cli/commands/actions/PreTranslateAction.java @@ -61,7 +61,7 @@ public void act(Outputter out, PropertiesWithFiles properties, ProjectClient cli .orElseThrow(() -> new RuntimeException(RESOURCE_BUNDLE.getString("error.branch_required_string_project"))); ApplyPreTranslationStringsBasedRequest request = RequestBuilder.applyPreTranslationStringsBased( languages, Collections.singletonList(branch.getId()), method, engineId, autoApproveOption, - duplicateTranslations, translateUntranslatedOnly, translateWithPerfectMatchOnly, labelIds); + duplicateTranslations, translateUntranslatedOnly, translateWithPerfectMatchOnly, labelIds, aiPrompt); this.applyPreTranslationStringsBased(out, client, request); return; } diff --git a/src/main/java/com/crowdin/cli/commands/functionality/RequestBuilder.java b/src/main/java/com/crowdin/cli/commands/functionality/RequestBuilder.java index 2f977db1..9d59fe27 100644 --- a/src/main/java/com/crowdin/cli/commands/functionality/RequestBuilder.java +++ b/src/main/java/com/crowdin/cli/commands/functionality/RequestBuilder.java @@ -289,7 +289,7 @@ public static ApplyPreTranslationRequest applyPreTranslation( public static ApplyPreTranslationStringsBasedRequest applyPreTranslationStringsBased( List languageIds, List branchId, Method method, Long engineId, AutoApproveOption autoApproveOption, - Boolean duplicateTranslations, Boolean translateUntranslatedOnly, Boolean translateWithPerfectMatchOnly, List labelIds + Boolean duplicateTranslations, Boolean translateUntranslatedOnly, Boolean translateWithPerfectMatchOnly, List labelIds, Long aiPrompt ) { ApplyPreTranslationStringsBasedRequest request = new ApplyPreTranslationStringsBasedRequest(); request.setLanguageIds(languageIds); @@ -301,6 +301,7 @@ public static ApplyPreTranslationStringsBasedRequest applyPreTranslationStringsB request.setTranslateUntranslatedOnly(translateUntranslatedOnly); request.setTranslateWithPerfectMatchOnly(translateWithPerfectMatchOnly); request.setLabelIds(labelIds); + request.setAiPromptId(aiPrompt); return request; } diff --git a/versions.properties b/versions.properties index 1545f69a..2e6549ba 100644 --- a/versions.properties +++ b/versions.properties @@ -43,7 +43,7 @@ version.commons-io..commons-io=2.16.1 version.commons-cli..commons-cli=1.7.0 -version.com.github.crowdin..crowdin-api-client-java=1.19.1 +version.com.github.crowdin..crowdin-api-client-java=1.19.2 plugin.org.asciidoctor.jvm.convert=3.3.2