monkey-front-core 0.0.523 → 0.0.524
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/esm2020/lib/core/services/config/monkeyecx-i18n-config.service.mjs +8 -6
- package/fesm2015/monkey-front-core.mjs +7 -5
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +7 -5
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/monkey-front-core-0.0.524.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.523.tgz +0 -0
|
@@ -3713,7 +3713,7 @@ class MonkeyEcxi18nConfigService extends MonkeyEcxCommonsService {
|
|
|
3713
3713
|
}
|
|
3714
3714
|
catch (e) {
|
|
3715
3715
|
console.error(`loadAuth i18n ${lang} not found!`);
|
|
3716
|
-
this.loadDefaultFromError(environment, 'auth');
|
|
3716
|
+
await this.loadDefaultFromError(environment, 'auth');
|
|
3717
3717
|
}
|
|
3718
3718
|
}
|
|
3719
3719
|
async loadAlerts(environment, lang) {
|
|
@@ -3727,7 +3727,7 @@ class MonkeyEcxi18nConfigService extends MonkeyEcxCommonsService {
|
|
|
3727
3727
|
}
|
|
3728
3728
|
catch (e) {
|
|
3729
3729
|
console.error(`loadAlerts i18n ${lang} not found!`);
|
|
3730
|
-
this.loadDefaultFromError(environment, 'alerts');
|
|
3730
|
+
await this.loadDefaultFromError(environment, 'alerts');
|
|
3731
3731
|
}
|
|
3732
3732
|
}
|
|
3733
3733
|
async loadShared(environment, lang) {
|
|
@@ -3741,7 +3741,7 @@ class MonkeyEcxi18nConfigService extends MonkeyEcxCommonsService {
|
|
|
3741
3741
|
}
|
|
3742
3742
|
catch (e) {
|
|
3743
3743
|
console.error(`loadShared i18n ${lang} not found!`);
|
|
3744
|
-
this.loadDefaultFromError(environment, 'shared');
|
|
3744
|
+
await this.loadDefaultFromError(environment, 'shared');
|
|
3745
3745
|
}
|
|
3746
3746
|
}
|
|
3747
3747
|
async loadRegister(environment, lang) {
|
|
@@ -3755,7 +3755,7 @@ class MonkeyEcxi18nConfigService extends MonkeyEcxCommonsService {
|
|
|
3755
3755
|
}
|
|
3756
3756
|
catch (e) {
|
|
3757
3757
|
console.error(`loadRegister i18n ${lang} not found!`);
|
|
3758
|
-
this.loadDefaultFromError(environment, 'register');
|
|
3758
|
+
await this.loadDefaultFromError(environment, 'register');
|
|
3759
3759
|
}
|
|
3760
3760
|
}
|
|
3761
3761
|
async loadInternal(environment, lang) {
|
|
@@ -3766,7 +3766,7 @@ class MonkeyEcxi18nConfigService extends MonkeyEcxCommonsService {
|
|
|
3766
3766
|
}
|
|
3767
3767
|
catch (e) {
|
|
3768
3768
|
console.error(`loadInternal i18n ${lang} not found!`);
|
|
3769
|
-
this.loadInternalDefaultFromError(environment);
|
|
3769
|
+
await this.loadInternalDefaultFromError(environment);
|
|
3770
3770
|
}
|
|
3771
3771
|
}
|
|
3772
3772
|
async apply(environment) {
|
|
@@ -3792,7 +3792,9 @@ class MonkeyEcxi18nConfigService extends MonkeyEcxCommonsService {
|
|
|
3792
3792
|
this.loadAlerts(environment, lang);
|
|
3793
3793
|
this.loadShared(environment, lang);
|
|
3794
3794
|
this.loadRegister(environment, lang);
|
|
3795
|
+
console.log('1');
|
|
3795
3796
|
if (this.i18nNotFound) {
|
|
3797
|
+
console.log('2');
|
|
3796
3798
|
this.translateService.setDefaultLang('pt-BR');
|
|
3797
3799
|
this.translateService.use('pt-BR');
|
|
3798
3800
|
return;
|