@hivegpt/hiveai-angular 0.0.371 → 0.0.372
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 +2 -16
- 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 +3 -17
- package/fesm2015/hivegpt-hiveai-angular.js +2 -16
- 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
|
@@ -726,22 +726,8 @@
|
|
|
726
726
|
};
|
|
727
727
|
TranslationService.prototype.getTranslation = function (key) {
|
|
728
728
|
console.log('eventId', this.eventId);
|
|
729
|
-
|
|
730
|
-
var
|
|
731
|
-
console.log(localStorageLanguage);
|
|
732
|
-
// let lang = 'pt-br';
|
|
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
|
-
}
|
|
729
|
+
// let lang = String(this.getLang(this.eventId)).replace(/^"|"$/g, '');
|
|
730
|
+
var lang = (localStorage.getItem('defaultLanguage-' + this.eventId) || 'en').replace(/^"|"$/g, '');
|
|
745
731
|
var entry = this.translationsData.find(function (item) { return item.Key === key; });
|
|
746
732
|
if (!entry) {
|
|
747
733
|
return key; // fallback
|