monkey-front-core 0.0.479 → 0.0.481

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.
@@ -3530,6 +3530,9 @@ class MonkeyEcxi18nConfigService extends MonkeyEcxCommonsService {
3530
3530
  let lang = environment?.locale?.lang || 'pt-BR';
3531
3531
  try {
3532
3532
  const me = await this.tokenStorage?.getMe();
3533
+ console.log('**********************');
3534
+ console.log(me);
3535
+ console.log('**********************');
3533
3536
  lang = me?.locale || lang;
3534
3537
  }
3535
3538
  catch (e) {
@@ -3903,12 +3906,13 @@ class MonkeyEcxConfigService extends MonkeyEcxCommonsService {
3903
3906
  this.configBootstrapSubject$ = new BehaviorSubject({});
3904
3907
  }
3905
3908
  async getSettings(monkeyecxCode, configBootstrap, callback, environment, identifyCode) {
3906
- const { monkeyecxSecurityConsoleConfigService, monkeyecxServiceWorkerConfigService, monkeyecxMaintenanceConfigService, monkeyStyleGuideSettingsService, monkeyGTMConfigService, getWhiteLabel } = this;
3909
+ const { monkeyecxSecurityConsoleConfigService, monkeyecxServiceWorkerConfigService, monkeyecxMaintenanceConfigService, monkeyStyleGuideSettingsService, monkeyGTMConfigService, getWhiteLabel, monkeyecxi18nConfigService } = this;
3907
3910
  monkeyecxServiceWorkerConfigService.apply(configBootstrap);
3908
3911
  monkeyecxMaintenanceConfigService.apply(configBootstrap);
3909
3912
  monkeyecxSecurityConsoleConfigService.apply();
3910
3913
  monkeyGTMConfigService.apply(environment);
3911
3914
  const url = `${environment.urlAssets}/${monkeyecxCode.toLowerCase()}`;
3915
+ await monkeyecxi18nConfigService.apply(environment);
3912
3916
  monkeyStyleGuideSettingsService.bootstrap(`${url}/monkey-style-guide-settings.json`, getWhiteLabel.bind(this, configBootstrap, callback, environment, identifyCode, url));
3913
3917
  }
3914
3918
  getWhiteLabel(configBootstrap, callback, environment, identifyCode, url) {
@@ -3928,8 +3932,7 @@ class MonkeyEcxConfigService extends MonkeyEcxCommonsService {
3928
3932
  });
3929
3933
  }
3930
3934
  init(callback, environment, identifyCode, monkeyecxCode) {
3931
- const { monkeyecxService, configBootstrapSubject$, monkeyecxErrorConfigService, monkeyecxi18nConfigService } = this;
3932
- monkeyecxi18nConfigService.apply(environment);
3935
+ const { monkeyecxService, configBootstrapSubject$, monkeyecxErrorConfigService } = this;
3933
3936
  monkeyecxService
3934
3937
  ?.get(`${environment.bootstrapAssets}`, {
3935
3938
  observe: 'response'