@hivegpt/hiveai-angular 0.0.368 → 0.0.371
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 +11 -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 +12 -3
- package/fesm2015/hivegpt-hiveai-angular.js +11 -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
|
@@ -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.getItem('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
|
-
|
|
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
|