Skip to content

Commit

Permalink
fix: pre translate ai prompt id for sb projects (#867)
Browse files Browse the repository at this point in the history
  • Loading branch information
yevheniyJ authored Nov 11, 2024
1 parent 4212244 commit 7b93ceb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ public static ApplyPreTranslationRequest applyPreTranslation(

public static ApplyPreTranslationStringsBasedRequest applyPreTranslationStringsBased(
List<String> languageIds, List<Long> branchId, Method method, Long engineId, AutoApproveOption autoApproveOption,
Boolean duplicateTranslations, Boolean translateUntranslatedOnly, Boolean translateWithPerfectMatchOnly, List<Long> labelIds
Boolean duplicateTranslations, Boolean translateUntranslatedOnly, Boolean translateWithPerfectMatchOnly, List<Long> labelIds, Long aiPrompt
) {
ApplyPreTranslationStringsBasedRequest request = new ApplyPreTranslationStringsBasedRequest();
request.setLanguageIds(languageIds);
Expand All @@ -301,6 +301,7 @@ public static ApplyPreTranslationStringsBasedRequest applyPreTranslationStringsB
request.setTranslateUntranslatedOnly(translateUntranslatedOnly);
request.setTranslateWithPerfectMatchOnly(translateWithPerfectMatchOnly);
request.setLabelIds(labelIds);
request.setAiPromptId(aiPrompt);
return request;
}

Expand Down
2 changes: 1 addition & 1 deletion versions.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7b93ceb

Please sign in to comment.