monkey-front-core 0.0.449 → 0.0.450
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 +2 -14
- package/fesm2015/monkey-front-core.mjs +2 -13
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +1 -13
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/monkey-front-core-0.0.450.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.449.tgz +0 -0
|
@@ -3308,8 +3308,6 @@ class MonkeyEcxi18nConfigService extends MonkeyEcxCommonsService {
|
|
|
3308
3308
|
this.translateService.use('pt-BR');
|
|
3309
3309
|
}
|
|
3310
3310
|
apply(params, environment, change = false) {
|
|
3311
|
-
console.log('change no core');
|
|
3312
|
-
console.log(change);
|
|
3313
3311
|
this.applyInternal(environment, params, change);
|
|
3314
3312
|
this.applyExternal(params, environment, change);
|
|
3315
3313
|
}
|
|
@@ -3317,33 +3315,23 @@ class MonkeyEcxi18nConfigService extends MonkeyEcxCommonsService {
|
|
|
3317
3315
|
const { monkeyecxService, monkeyecxErrorConfigService, monkeyecxCookieStorageService } = this;
|
|
3318
3316
|
let lang = '';
|
|
3319
3317
|
let i18n = { lang: '' };
|
|
3320
|
-
console.log('1');
|
|
3321
3318
|
try {
|
|
3322
3319
|
if (!change) {
|
|
3323
|
-
console.log('2');
|
|
3324
3320
|
const cookie = monkeyecxCookieStorageService.getCookie('monkey-app-locale');
|
|
3325
3321
|
if (cookie) {
|
|
3326
3322
|
i18n = JSON.parse(atob(cookie));
|
|
3327
3323
|
}
|
|
3328
|
-
console.log('3');
|
|
3329
3324
|
}
|
|
3330
3325
|
else {
|
|
3331
|
-
console.log('4');
|
|
3332
3326
|
i18n = {
|
|
3333
|
-
lang: params
|
|
3327
|
+
lang: params?.i18n?.lang
|
|
3334
3328
|
};
|
|
3335
3329
|
}
|
|
3336
3330
|
}
|
|
3337
3331
|
catch (e) {
|
|
3338
3332
|
// not to do
|
|
3339
3333
|
}
|
|
3340
|
-
console.log('lang no core');
|
|
3341
|
-
console.log(lang);
|
|
3342
|
-
console.log('i18n no core');
|
|
3343
|
-
console.log(i18n);
|
|
3344
3334
|
lang = i18n?.lang || `${environment?.lang || 'pt-BR'}`;
|
|
3345
|
-
console.log('segundo lang');
|
|
3346
|
-
console.log(lang);
|
|
3347
3335
|
try {
|
|
3348
3336
|
const currenti18n = await monkeyecxService
|
|
3349
3337
|
?.get(`${environment.localAssets}/i18n/${lang}.json`)
|