@tilde-nlp/ngx-translate 2.1.3 → 2.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3516,7 +3516,7 @@ class TldTranslateConfigService {
3516
3516
  this._webtranslateConfig.allowSuggestions = webtranslate?.allowSuggestions || false;
3517
3517
  this._webtranslateConfig.hidePopup = webtranslate?.hidePopup || false;
3518
3518
  this._webtranslateConfig.sandbox = webtranslate?.sandbox ?? "allow-forms allow-scripts allow-same-origin";
3519
- this._termConfig.apiUrl = termConfig?.apiUrl || "https://term.tilde.com";
3519
+ this._termConfig.terminologyPortalUrl = termConfig?.terminologyPortalUrl || "https://term.tilde.com";
3520
3520
  this._termConfig.canCreateCollection = termConfig?.canCreateCollection;
3521
3521
  this._termConfig.isCollectionsActivated = termConfig?.isCollectionsActivated;
3522
3522
  this._termConfig.isTermPortalSupported = termConfig?.isTermPortalSupported ?? false;
@@ -5880,7 +5880,7 @@ class TermApiService {
5880
5880
  this.http = http;
5881
5881
  }
5882
5882
  get url() {
5883
- return `${this.config.termConfig.apiUrl}/api/termservice/collection`;
5883
+ return `${this.config.termConfig.terminologyPortalUrl}/api/termservice/collection`;
5884
5884
  }
5885
5885
  createCollection(defaultLanguages, collectionName) {
5886
5886
  const params = {
@@ -5903,7 +5903,7 @@ class TermApiService {
5903
5903
  }));
5904
5904
  }
5905
5905
  getEditLink(termId, sourceLanguage, targetLanguage) {
5906
- let link = `${this.config.termConfig.apiUrl}/collections/${termId}/mt`;
5906
+ let link = `${this.config.termConfig.terminologyPortalUrl}/collections/${termId}/mt`;
5907
5907
  if (sourceLanguage) {
5908
5908
  link = `${link}/${sourceLanguage}`;
5909
5909
  }