@hivegpt/hiveai-angular 0.0.367 → 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.
@@ -725,11 +725,23 @@
725
725
  this.eventId = id;
726
726
  };
727
727
  TranslationService.prototype.getTranslation = function (key) {
728
- debugger;
729
728
  console.log('eventId', this.eventId);
730
729
  var lang = String(this.getLang(this.eventId));
730
+ var localStorageLanguage = localStorage.get('defaultLanguage-' + this.eventId);
731
+ console.log(localStorageLanguage);
731
732
  // let lang = 'pt-br';
732
- console.log('lang 2.0', lang);
733
+ if (lang == "pt-br") {
734
+ console.log('cond check >1');
735
+ lang = 'pt-br';
736
+ }
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
+ }
733
745
  var entry = this.translationsData.find(function (item) { return item.Key === key; });
734
746
  if (!entry) {
735
747
  return key; // fallback