@hivegpt/hiveai-angular 0.0.365 → 0.0.367
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 +4 -1
- 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 +5 -2
- package/fesm2015/hivegpt-hiveai-angular.js +4 -1
- 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,13 +725,16 @@
|
|
|
725
725
|
this.eventId = id;
|
|
726
726
|
};
|
|
727
727
|
TranslationService.prototype.getTranslation = function (key) {
|
|
728
|
+
debugger;
|
|
728
729
|
console.log('eventId', this.eventId);
|
|
729
|
-
var lang = this.getLang(this.eventId);
|
|
730
|
+
var lang = String(this.getLang(this.eventId));
|
|
731
|
+
// let lang = 'pt-br';
|
|
730
732
|
console.log('lang 2.0', lang);
|
|
731
733
|
var entry = this.translationsData.find(function (item) { return item.Key === key; });
|
|
732
734
|
if (!entry) {
|
|
733
735
|
return key; // fallback
|
|
734
736
|
}
|
|
737
|
+
console.log('entry.Translations[lang]', entry.Translations[lang]);
|
|
735
738
|
return entry.Translations[lang] || entry.DefaultValue || key;
|
|
736
739
|
};
|
|
737
740
|
TranslationService.prototype.getLang = function (eventId) {
|