@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.
- package/bundles/hivegpt-hiveai-angular.umd.js +14 -2
- package/bundles/hivegpt-hiveai-angular.umd.js.map +1 -1
- package/bundles/hivegpt-hiveai-angular.umd.min.js +1 -1
- package/bundles/hivegpt-hiveai-angular.umd.min.js.map +1 -1
- package/esm2015/lib/components/translations/translation.service.js +15 -3
- package/fesm2015/hivegpt-hiveai-angular.js +14 -2
- package/fesm2015/hivegpt-hiveai-angular.js.map +1 -1
- package/lib/components/translations/translation.service.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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
|