monkey-front-core 21.0.2 → 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._injector = inject(Injector);
|
|
5558
5559
|
this._localeId = injectTokenWithWarning(LOCALE_ID, 'LOCALE_ID');
|
|
5559
5560
|
this._bootstrapService = injectTokenWithWarning(MECX_BOOTSTRAP_SERVICE, 'MECX_BOOTSTRAP_SERVICE');
|
|
5560
5561
|
this._tokenStorageService = inject(MonkeyEcxTokenStorageService);
|
|
5561
5562
|
// not to do
|
|
5562
5563
|
}
|
|
5563
5564
|
resolve() {
|
|
5564
|
-
const service =
|
|
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();
|