@tilde-nlp/ngx-translate 9.0.28 → 9.0.30
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.
|
@@ -4497,7 +4497,7 @@ const i18n_hr = {
|
|
|
4497
4497
|
"DEFAULT_COLLECTION_NAME": "Moja zbirka pojmova",
|
|
4498
4498
|
"SYNC": "Sinkronizacija",
|
|
4499
4499
|
"SYNC_ERROR": "Pokušaj ponovo",
|
|
4500
|
-
"TERMS_IN_USE": "
|
|
4500
|
+
"TERMS_IN_USE": "Pojmovi u upotrebi: {{termCount}}",
|
|
4501
4501
|
"DEFAULT_GLOSSARY_MANAGEMENT": "Upravljajte zadanim rječnicima.",
|
|
4502
4502
|
"ARIA_LABELS": {
|
|
4503
4503
|
"RADIO_GROUP": "Odaberite zbirku pojmova",
|
|
@@ -8696,11 +8696,10 @@ class TldTranslateTextService {
|
|
|
8696
8696
|
setDictionaryTerms(response, urls) {
|
|
8697
8697
|
response.forEach((res, i) => {
|
|
8698
8698
|
res.forEach((item) => {
|
|
8699
|
-
const isTerminiGovLvCollection = urls[i].includes('termini');
|
|
8700
8699
|
const isTildeTermCollection = urls[i].includes('tilde');
|
|
8701
8700
|
const termWithSource = {
|
|
8702
8701
|
...item,
|
|
8703
|
-
dictionaryDomainUrl: urls[i],
|
|
8702
|
+
dictionaryDomainUrl: isTildeTermCollection ? null : urls[i],
|
|
8704
8703
|
sourceLabel: isTildeTermCollection ? this.translate.instant('TERM_PORTAL_NAME') : null,
|
|
8705
8704
|
};
|
|
8706
8705
|
const termSummary = termWithSource.languageSummaries?.find((summary) => summary.lang === this.activeData.targetLanguage);
|
|
@@ -8708,16 +8707,9 @@ class TldTranslateTextService {
|
|
|
8708
8707
|
const collectionEntry = termWithSource.entrySummaries[0];
|
|
8709
8708
|
const collectionId = collectionEntry.collectionId;
|
|
8710
8709
|
const collectionTargetWord = termSummary.terms[0].term;
|
|
8711
|
-
|
|
8712
|
-
|
|
8713
|
-
|
|
8714
|
-
}
|
|
8715
|
-
else if (isTerminiGovLvCollection) {
|
|
8716
|
-
collectionUrl = `https://${termWithSource.dictionaryDomainUrl}/kolekcijas/${collectionId}`;
|
|
8717
|
-
}
|
|
8718
|
-
else {
|
|
8719
|
-
collectionUrl = `https://${termWithSource.dictionaryDomainUrl}/collections/${collectionId}`;
|
|
8720
|
-
}
|
|
8710
|
+
const collectionUrl = termWithSource.dictionaryDomainUrl
|
|
8711
|
+
? `https://${termWithSource.dictionaryDomainUrl}/collections/${collectionId}`
|
|
8712
|
+
: `${this.terminologyPortalUrl}/collections/${collectionId}`;
|
|
8721
8713
|
if (!this.dictionaryEntry.some((term) => term.targetWord === collectionTargetWord && term.termSource === collectionEntry.collectionName)) {
|
|
8722
8714
|
this.dictionaryEntry.push({
|
|
8723
8715
|
...termWithSource,
|