Skip to content

Commit

Permalink
fix: bundle url from client (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
yevheniyJ authored Nov 15, 2024
1 parent 69b99bb commit 12394ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repositories {
dependencies {

implementation 'net.lingala.zip4j:zip4j:2.11.3'
implementation 'com.github.crowdin:crowdin-api-client-java:1.14.0'
implementation 'com.github.crowdin:crowdin-api-client-java:1.19.5'
implementation 'commons-io:commons-io:2.15.1'
implementation 'org.yaml:snakeyaml:2.2'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,6 @@ public String buildBundleUrl() {
}
}

if (this.baseUrl != null && isEnterpriseUrl(this.baseUrl)) {
String organization = extractOrganization(this.baseUrl);
return "https://" + organization + ".crowdin.com/u/projects/" + project.getId() + "/translations/bundle/" + bundle.getId();
} else {
return "https://crowdin.com/project/" + project.getIdentifier() + "/download#bundles:" + bundle.getId();
}
return bundle.getWebUrl();
}
}

0 comments on commit 12394ab

Please sign in to comment.