@hivegpt/hiveai-angular 0.0.366 → 0.0.368

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.
@@ -727,11 +727,17 @@
727
727
  TranslationService.prototype.getTranslation = function (key) {
728
728
  console.log('eventId', this.eventId);
729
729
  var lang = String(this.getLang(this.eventId));
730
+ // let lang = 'pt-br';
731
+ if (lang == "pt-br") {
732
+ console.log('cond check >');
733
+ lang = 'pt-br';
734
+ }
730
735
  console.log('lang 2.0', lang);
731
736
  var entry = this.translationsData.find(function (item) { return item.Key === key; });
732
737
  if (!entry) {
733
738
  return key; // fallback
734
739
  }
740
+ console.log('entry.Translations[lang]', entry.Translations[lang]);
735
741
  return entry.Translations[lang] || entry.DefaultValue || key;
736
742
  };
737
743
  TranslationService.prototype.getLang = function (eventId) {