@rangertechnologies/ngnxt 2.1.333 → 2.1.334

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.
@@ -976,6 +976,8 @@ class TranslationService {
976
976
  this.updateTranslations(flattened);
977
977
  }
978
978
  else {
979
+ if (!this.translations)
980
+ this.translations = {};
979
981
  this.translations[this.currentLang] = {};
980
982
  }
981
983
  this.translationsLoaded.next();
@@ -1002,11 +1004,9 @@ class TranslationService {
1002
1004
  return newTranslations;
1003
1005
  }
1004
1006
  updateTranslations(newTranslations) {
1005
- const oldTranslations = this.translations && typeof this.translations === 'object'
1006
- ? this.translations
1007
- : {};
1007
+ const oldTranslations = this.translations && typeof this.translations === 'object' ? this.translations : {};
1008
1008
  // SKS17DEC25 Immutable merge (Angular-friendly)
1009
- this.translations = this.deepMerge(oldTranslations, newTranslations);
1009
+ this.translations = this.deepMerge(oldTranslations, newTranslations) || {};
1010
1010
  this.translationsLoaded.next(); // Notify subscribers
1011
1011
  }
1012
1012
  // SKS17DEC25 Deep Merge (Immutable)
@@ -59020,7 +59020,7 @@ const VERSION = {
59020
59020
  "semver": null,
59021
59021
  "suffix": "68a4eb8b-dirty",
59022
59022
  "semverString": null,
59023
- "version": "2.1.333"
59023
+ "version": "2.1.334"
59024
59024
  };
59025
59025
  /* tslint:enable */
59026
59026