@tilde-nlp/ngx-translate 9.1.4 → 9.1.6

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.
@@ -3265,7 +3265,8 @@ const i18n_lv = {
3265
3265
  "BUBA_NMTTEST": "Deutsche Bundesbank Test",
3266
3266
  "GENERAL_AI": "Vispārīgais MI",
3267
3267
  "ACADEMIC_AI": "Zinātniskais MI",
3268
- "PROFESSIONAL_AI": "Profesionālais MI"
3268
+ "PROFESSIONAL_AI": "Profesionālais MI",
3269
+ "MEDICAL": "Medicīnas"
3269
3270
  },
3270
3271
  "AUDIO": {
3271
3272
  "START": "Tulkot runu",
@@ -8723,11 +8724,11 @@ class TldTranslateTextService {
8723
8724
  response.forEach((res, i) => {
8724
8725
  res.forEach((item) => {
8725
8726
  const isTerminiGovLvCollection = urls[i].includes('termini');
8726
- const isTildeTermCollection = urls[i].includes('tilde');
8727
+ const isTermPortalCollection = urls[i].includes(this.configService.termConfig.terminologyPortalUrl);
8727
8728
  const termWithSource = {
8728
8729
  ...item,
8729
8730
  dictionaryDomainUrl: urls[i],
8730
- sourceLabel: isTildeTermCollection ? this.translate.instant('TERM_PORTAL_NAME') : null,
8731
+ sourceLabel: isTermPortalCollection ? this.translate.instant('TERM_PORTAL_NAME') : null,
8731
8732
  };
8732
8733
  const termSummary = termWithSource.languageSummaries?.find((summary) => summary.lang === this.activeData.targetLanguage);
8733
8734
  if (termSummary) {
@@ -8735,8 +8736,10 @@ class TldTranslateTextService {
8735
8736
  const collectionId = collectionEntry.collectionId;
8736
8737
  const collectionTargetWord = termSummary.terms[0].term;
8737
8738
  let collectionUrl;
8738
- if (isTildeTermCollection) {
8739
- collectionUrl = `${this.terminologyPortalUrl}/collections/${collectionId}`;
8739
+ if (isTermPortalCollection) {
8740
+ collectionUrl = this.configService.termConfig.canCreateCollection ?
8741
+ `${this.terminologyPortalUrl}/collections/${collectionId}` :
8742
+ `${this.terminologyPortalUrl}/search/${collectionTargetWord}`;
8740
8743
  }
8741
8744
  else if (isTerminiGovLvCollection) {
8742
8745
  collectionUrl = `https://${termWithSource.dictionaryDomainUrl}/kolekcijas/${collectionId}`;