@hivegpt/hiveai-angular 0.0.368 → 0.0.370

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,12 +727,21 @@
727
727
  TranslationService.prototype.getTranslation = function (key) {
728
728
  console.log('eventId', this.eventId);
729
729
  var lang = String(this.getLang(this.eventId));
730
+ var localStorageLanguage = localStorage.get('defaultLanguage-' + this.eventId);
731
+ console.log(localStorageLanguage);
730
732
  // let lang = 'pt-br';
731
733
  if (lang == "pt-br") {
732
- console.log('cond check >');
734
+ console.log('cond check >1');
733
735
  lang = 'pt-br';
734
736
  }
735
- console.log('lang 2.0', lang);
737
+ else if (lang == 'pt-br') {
738
+ console.log('cond check >2');
739
+ lang = 'pt-br';
740
+ }
741
+ else {
742
+ console.log('cond check >3');
743
+ console.log(lang);
744
+ }
736
745
  var entry = this.translationsData.find(function (item) { return item.Key === key; });
737
746
  if (!entry) {
738
747
  return key; // fallback