monkey-front-core 0.0.447 → 0.0.449

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