monkey-front-core 21.0.1 → 21.0.3

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.
@@ -5555,13 +5555,14 @@ class MonkeyEcxBaseResolver {
5555
5555
  class MonkeyEcxI18nResolver {
5556
5556
  static { this._loadedPaths = new Map(); }
5557
5557
  constructor() {
5558
- this._http = inject(HttpClient);
5558
+ this._injector = inject(Injector);
5559
5559
  this._localeId = injectTokenWithWarning(LOCALE_ID, 'LOCALE_ID');
5560
5560
  this._bootstrapService = injectTokenWithWarning(MECX_BOOTSTRAP_SERVICE, 'MECX_BOOTSTRAP_SERVICE');
5561
5561
  this._tokenStorageService = inject(MonkeyEcxTokenStorageService);
5562
5562
  // not to do
5563
5563
  }
5564
5564
  resolve() {
5565
+ const service = this._injector.get(MonkeyEcxService);
5565
5566
  const locale = this._tokenStorageService.getMe()?.locale || this._localeId;
5566
5567
  const path = this.getPath();
5567
5568
  const host = this.getHost();
@@ -5572,7 +5573,7 @@ class MonkeyEcxI18nResolver {
5572
5573
  if (lastLoaded && now - lastLoaded < CACHE_LOCALE_EXPIRATION_MS) {
5573
5574
  return of(true);
5574
5575
  }
5575
- return this._http.get(url).pipe(map((translations) => {
5576
+ return service.get(url).pipe(map((translations) => {
5576
5577
  this._bootstrapService.handleI18N(locale, {
5577
5578
  [this.getAlias()]: translations.data
5578
5579
  });