monkey-front-core 21.0.1 → 21.0.2

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