monkey-front-core 21.0.0 → 21.0.1

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