@jsverse/transloco 7.4.4 → 7.5.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.
- package/CHANGELOG.md +16 -1
- package/esm2022/lib/get-fallbacks-loaders.mjs +1 -1
- package/esm2022/lib/helpers.mjs +34 -6
- package/esm2022/lib/loader-component.component.mjs +3 -3
- package/esm2022/lib/resolve-loader.mjs +1 -1
- package/esm2022/lib/scope-resolver.mjs +4 -2
- package/esm2022/lib/shared.mjs +1 -1
- package/esm2022/lib/template-handler.mjs +1 -1
- package/esm2022/lib/transloco-fallback-strategy.mjs +4 -4
- package/esm2022/lib/transloco-loading-template.mjs +1 -1
- package/esm2022/lib/transloco-missing-handler.mjs +3 -3
- package/esm2022/lib/transloco-scope.mjs +1 -1
- package/esm2022/lib/transloco-testing.module.mjs +8 -8
- package/esm2022/lib/transloco.config.mjs +8 -1
- package/esm2022/lib/transloco.directive.mjs +4 -4
- package/esm2022/lib/transloco.interceptor.mjs +4 -4
- package/esm2022/lib/transloco.loader.mjs +1 -1
- package/esm2022/lib/transloco.module.mjs +4 -4
- package/esm2022/lib/transloco.pipe.mjs +4 -4
- package/esm2022/lib/transloco.providers.mjs +1 -1
- package/esm2022/lib/transloco.service.mjs +6 -6
- package/esm2022/lib/transloco.transpiler.mjs +8 -8
- package/fesm2022/jsverse-transloco.mjs +84 -47
- package/fesm2022/jsverse-transloco.mjs.map +1 -1
- package/lib/helpers.d.ts +2 -2
- package/lib/transloco.config.d.ts +3 -0
- package/package.json +1 -2
- package/schematics/src/component/index.js +1 -1
- package/schematics/src/component/index.js.map +1 -1
- package/schematics/src/join/index.js +1 -1
- package/schematics/src/join/index.js.map +1 -1
- package/schematics/src/keys-manager/index.js +3 -4
- package/schematics/src/keys-manager/index.js.map +1 -1
- package/schematics/src/migrate/index.js +1 -1
- package/schematics/src/migrate/index.js.map +1 -1
- package/schematics/src/migrate/ngx-translate-migration.js +2 -2
- package/schematics/src/migrate/ngx-translate-migration.js.map +1 -1
- package/schematics/src/ng-add/generators/http-loader.gen.js +1 -2
- package/schematics/src/ng-add/generators/http-loader.gen.js.map +1 -1
- package/schematics/src/ng-add/generators/root-module.gen.js +1 -2
- package/schematics/src/ng-add/generators/root-module.gen.js.map +1 -1
- package/schematics/src/ng-add/generators/translation-files.gen.js +3 -4
- package/schematics/src/ng-add/generators/translation-files.gen.js.map +1 -1
- package/schematics/src/ng-add/index.js +1 -1
- package/schematics/src/ng-add/index.js.map +1 -1
- package/schematics/src/ng-migrate/index.js +1 -1
- package/schematics/src/ng-migrate/index.js.map +1 -1
- package/schematics/src/ng-migrate/ng-migrate.js +1 -2
- package/schematics/src/ng-migrate/ng-migrate.js.map +1 -1
- package/schematics/src/schematics.utils.js +2 -2
- package/schematics/src/schematics.utils.js.map +1 -1
- package/schematics/src/scope/index.js +1 -1
- package/schematics/src/scope/index.js.map +1 -1
- package/schematics/src/split/index.js +1 -1
- package/schematics/src/split/index.js.map +1 -1
- package/schematics/src/upgrade/index.js +1 -1
- package/schematics/src/upgrade/index.js.map +1 -1
- package/schematics/src/upgrade/v2.js +1 -2
- package/schematics/src/upgrade/v2.js.map +1 -1
- package/schematics/src/utils/array.js +2 -3
- package/schematics/src/utils/array.js.map +1 -1
- package/schematics/src/utils/config.js +1 -2
- package/schematics/src/utils/config.js.map +1 -1
- package/schematics/src/utils/find-module.js +4 -4
- package/schematics/src/utils/find-module.js.map +1 -1
- package/schematics/src/utils/package.js +1 -2
- package/schematics/src/utils/package.js.map +1 -1
- package/schematics/src/utils/projects.js +6 -7
- package/schematics/src/utils/projects.js.map +1 -1
- package/schematics/src/utils/translations.js +2 -3
- package/schematics/src/utils/translations.js.map +1 -1
- package/schematics/src/utils/transloco.js +11 -12
- package/schematics/src/utils/transloco.js.map +1 -1
|
@@ -2,7 +2,6 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { InjectionToken, inject, Injectable, Injector, Inject, Optional, Component, Input, TemplateRef, DestroyRef, ChangeDetectorRef, ElementRef, ViewContainerRef, Renderer2, Directive, Pipe, NgModule, makeEnvironmentProviders, APP_INITIALIZER } from '@angular/core';
|
|
3
3
|
import { of, take, from, map, Subject, BehaviorSubject, forkJoin, retry, tap, catchError, shareReplay, switchMap, combineLatest, EMPTY } from 'rxjs';
|
|
4
4
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
5
|
-
import { unflatten as unflatten$1, flatten as flatten$1 } from 'flat';
|
|
6
5
|
|
|
7
6
|
class DefaultLoader {
|
|
8
7
|
translations;
|
|
@@ -108,11 +107,40 @@ function isScopeObject(item) {
|
|
|
108
107
|
function hasInlineLoader(item) {
|
|
109
108
|
return item && isObject(item.loader);
|
|
110
109
|
}
|
|
111
|
-
function unflatten(obj) {
|
|
112
|
-
return unflatten$1(obj);
|
|
113
|
-
}
|
|
114
110
|
function flatten(obj) {
|
|
115
|
-
|
|
111
|
+
const result = {};
|
|
112
|
+
function recurse(curr, prop) {
|
|
113
|
+
if (curr === null) {
|
|
114
|
+
result[prop] = null;
|
|
115
|
+
}
|
|
116
|
+
else if (isObject(curr)) {
|
|
117
|
+
for (const [key, value] of Object.entries(curr)) {
|
|
118
|
+
recurse(value, prop ? `${prop}.${key}` : key);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
else {
|
|
122
|
+
result[prop] = curr;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
recurse(obj, '');
|
|
126
|
+
return result;
|
|
127
|
+
}
|
|
128
|
+
function unflatten(obj) {
|
|
129
|
+
const result = {};
|
|
130
|
+
for (const [key, value] of Object.entries(obj)) {
|
|
131
|
+
const keys = key.split('.');
|
|
132
|
+
let current = result;
|
|
133
|
+
keys.forEach((key, i) => {
|
|
134
|
+
if (i === keys.length - 1) {
|
|
135
|
+
current[key] = value;
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
current[key] ??= {};
|
|
139
|
+
current = current[key];
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
return result;
|
|
116
144
|
}
|
|
117
145
|
|
|
118
146
|
const TRANSLOCO_CONFIG = new InjectionToken('TRANSLOCO_CONFIG', {
|
|
@@ -135,6 +163,9 @@ const defaultConfig = {
|
|
|
135
163
|
aot: false,
|
|
136
164
|
},
|
|
137
165
|
interpolation: ['{{', '}}'],
|
|
166
|
+
scopes: {
|
|
167
|
+
keepCasing: false,
|
|
168
|
+
},
|
|
138
169
|
};
|
|
139
170
|
function translocoConfig(config = {}) {
|
|
140
171
|
return {
|
|
@@ -148,6 +179,10 @@ function translocoConfig(config = {}) {
|
|
|
148
179
|
...defaultConfig.flatten,
|
|
149
180
|
...config.flatten,
|
|
150
181
|
},
|
|
182
|
+
scopes: {
|
|
183
|
+
...defaultConfig.scopes,
|
|
184
|
+
...config.scopes,
|
|
185
|
+
},
|
|
151
186
|
};
|
|
152
187
|
}
|
|
153
188
|
|
|
@@ -184,7 +219,7 @@ class DefaultTranspiler {
|
|
|
184
219
|
else if (params) {
|
|
185
220
|
if (isObject(value)) {
|
|
186
221
|
value = this.handleObject({
|
|
187
|
-
value
|
|
222
|
+
value,
|
|
188
223
|
params,
|
|
189
224
|
translation,
|
|
190
225
|
key,
|
|
@@ -243,10 +278,10 @@ class DefaultTranspiler {
|
|
|
243
278
|
...rest,
|
|
244
279
|
}));
|
|
245
280
|
}
|
|
246
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
247
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.
|
|
281
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: DefaultTranspiler, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
282
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: DefaultTranspiler });
|
|
248
283
|
}
|
|
249
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
284
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: DefaultTranspiler, decorators: [{
|
|
250
285
|
type: Injectable
|
|
251
286
|
}] });
|
|
252
287
|
function resolveMatcher(config) {
|
|
@@ -288,10 +323,10 @@ class FunctionalTranspiler extends DefaultTranspiler {
|
|
|
288
323
|
}
|
|
289
324
|
return super.transpile({ value: transpiled, ...rest });
|
|
290
325
|
}
|
|
291
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
292
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.
|
|
326
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: FunctionalTranspiler, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
327
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: FunctionalTranspiler });
|
|
293
328
|
}
|
|
294
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
329
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: FunctionalTranspiler, decorators: [{
|
|
295
330
|
type: Injectable
|
|
296
331
|
}] });
|
|
297
332
|
|
|
@@ -304,10 +339,10 @@ class DefaultMissingHandler {
|
|
|
304
339
|
}
|
|
305
340
|
return key;
|
|
306
341
|
}
|
|
307
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
308
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.
|
|
342
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: DefaultMissingHandler, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
343
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: DefaultMissingHandler });
|
|
309
344
|
}
|
|
310
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
345
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: DefaultMissingHandler, decorators: [{
|
|
311
346
|
type: Injectable
|
|
312
347
|
}] });
|
|
313
348
|
|
|
@@ -319,10 +354,10 @@ class DefaultInterceptor {
|
|
|
319
354
|
preSaveTranslationKey(_, value) {
|
|
320
355
|
return value;
|
|
321
356
|
}
|
|
322
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
323
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.
|
|
357
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: DefaultInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
358
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: DefaultInterceptor });
|
|
324
359
|
}
|
|
325
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
360
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: DefaultInterceptor, decorators: [{
|
|
326
361
|
type: Injectable
|
|
327
362
|
}] });
|
|
328
363
|
|
|
@@ -339,10 +374,10 @@ class DefaultFallbackStrategy {
|
|
|
339
374
|
}
|
|
340
375
|
return Array.isArray(fallbackLang) ? fallbackLang : [fallbackLang];
|
|
341
376
|
}
|
|
342
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
343
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.
|
|
377
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: DefaultFallbackStrategy, deps: [{ token: TRANSLOCO_CONFIG }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
378
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: DefaultFallbackStrategy });
|
|
344
379
|
}
|
|
345
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
380
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: DefaultFallbackStrategy, decorators: [{
|
|
346
381
|
type: Injectable
|
|
347
382
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
348
383
|
type: Inject,
|
|
@@ -942,8 +977,8 @@ class TranslocoService {
|
|
|
942
977
|
return this.load(resolveLang, loadOptions);
|
|
943
978
|
}
|
|
944
979
|
getMappedScope(scope) {
|
|
945
|
-
const { scopeMapping = {} } = this.config;
|
|
946
|
-
return scopeMapping[scope] || toCamelCase(scope);
|
|
980
|
+
const { scopeMapping = {}, scopes = { keepCasing: false } } = this.config;
|
|
981
|
+
return (scopeMapping[scope] || (scopes.keepCasing ? scope : toCamelCase(scope)));
|
|
947
982
|
}
|
|
948
983
|
/**
|
|
949
984
|
* If lang is scope we need to check the following cases:
|
|
@@ -978,10 +1013,10 @@ class TranslocoService {
|
|
|
978
1013
|
getEntries(key) {
|
|
979
1014
|
return key instanceof Map ? key.entries() : Object.entries(key);
|
|
980
1015
|
}
|
|
981
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
982
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.
|
|
1016
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TranslocoService, deps: [{ token: TRANSLOCO_LOADER, optional: true }, { token: TRANSLOCO_TRANSPILER }, { token: TRANSLOCO_MISSING_HANDLER }, { token: TRANSLOCO_INTERCEPTOR }, { token: TRANSLOCO_CONFIG }, { token: TRANSLOCO_FALLBACK_STRATEGY }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1017
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TranslocoService, providedIn: 'root' });
|
|
983
1018
|
}
|
|
984
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
1019
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TranslocoService, decorators: [{
|
|
985
1020
|
type: Injectable,
|
|
986
1021
|
args: [{ providedIn: 'root' }]
|
|
987
1022
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
@@ -1008,12 +1043,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.4", ngImpor
|
|
|
1008
1043
|
|
|
1009
1044
|
class TranslocoLoaderComponent {
|
|
1010
1045
|
html;
|
|
1011
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
1012
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.
|
|
1046
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TranslocoLoaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1047
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.9", type: TranslocoLoaderComponent, isStandalone: true, selector: "ng-component", inputs: { html: "html" }, ngImport: i0, template: `
|
|
1013
1048
|
<div class="transloco-loader-template" [innerHTML]="html"></div>
|
|
1014
1049
|
`, isInline: true });
|
|
1015
1050
|
}
|
|
1016
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
1051
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TranslocoLoaderComponent, decorators: [{
|
|
1017
1052
|
type: Component,
|
|
1018
1053
|
args: [{
|
|
1019
1054
|
template: `
|
|
@@ -1122,7 +1157,9 @@ class ScopeResolver {
|
|
|
1122
1157
|
}
|
|
1123
1158
|
if (provider) {
|
|
1124
1159
|
if (isScopeObject(provider)) {
|
|
1125
|
-
const { scope, alias =
|
|
1160
|
+
const { scope, alias = this.service.config.scopes.keepCasing
|
|
1161
|
+
? scope
|
|
1162
|
+
: toCamelCase(scope), } = provider;
|
|
1126
1163
|
this.service._setScopeAlias(scope, alias);
|
|
1127
1164
|
return scope;
|
|
1128
1165
|
}
|
|
@@ -1255,10 +1292,10 @@ class TranslocoDirective {
|
|
|
1255
1292
|
const inlineLoader = resolveInlineLoader(providerScope, resolvedScope);
|
|
1256
1293
|
return this.service._loadDependencies(this.path, inlineLoader);
|
|
1257
1294
|
}
|
|
1258
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
1259
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.
|
|
1295
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TranslocoDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1296
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.9", type: TranslocoDirective, isStandalone: true, selector: "[transloco]", inputs: { key: ["transloco", "key"], params: ["translocoParams", "params"], inlineScope: ["translocoScope", "inlineScope"], inlineRead: ["translocoRead", "inlineRead"], prefix: ["translocoPrefix", "prefix"], inlineLang: ["translocoLang", "inlineLang"], inlineTpl: ["translocoLoadingTpl", "inlineTpl"] }, usesOnChanges: true, ngImport: i0 });
|
|
1260
1297
|
}
|
|
1261
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
1298
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TranslocoDirective, decorators: [{
|
|
1262
1299
|
type: Directive,
|
|
1263
1300
|
args: [{
|
|
1264
1301
|
selector: '[transloco]',
|
|
@@ -1352,10 +1389,10 @@ class TranslocoPipe {
|
|
|
1352
1389
|
const inlineLoader = resolveInlineLoader(providerScope, resolvedScope);
|
|
1353
1390
|
return this.service._loadDependencies(this.path, inlineLoader);
|
|
1354
1391
|
}
|
|
1355
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
1356
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.
|
|
1392
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TranslocoPipe, deps: [{ token: TranslocoService }, { token: TRANSLOCO_SCOPE, optional: true }, { token: TRANSLOCO_LANG, optional: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1393
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.9", ngImport: i0, type: TranslocoPipe, isStandalone: true, name: "transloco", pure: false });
|
|
1357
1394
|
}
|
|
1358
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
1395
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TranslocoPipe, decorators: [{
|
|
1359
1396
|
type: Pipe,
|
|
1360
1397
|
args: [{
|
|
1361
1398
|
name: 'transloco',
|
|
@@ -1376,11 +1413,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.4", ngImpor
|
|
|
1376
1413
|
|
|
1377
1414
|
const decl = [TranslocoDirective, TranslocoPipe];
|
|
1378
1415
|
class TranslocoModule {
|
|
1379
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
1380
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.
|
|
1381
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.
|
|
1416
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TranslocoModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1417
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.9", ngImport: i0, type: TranslocoModule, imports: [TranslocoDirective, TranslocoPipe], exports: [TranslocoDirective, TranslocoPipe] });
|
|
1418
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TranslocoModule });
|
|
1382
1419
|
}
|
|
1383
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
1420
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TranslocoModule, decorators: [{
|
|
1384
1421
|
type: NgModule,
|
|
1385
1422
|
args: [{
|
|
1386
1423
|
imports: decl,
|
|
@@ -1480,10 +1517,10 @@ class TestingLoader {
|
|
|
1480
1517
|
getTranslation(lang) {
|
|
1481
1518
|
return of(this.langs[lang]);
|
|
1482
1519
|
}
|
|
1483
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
1484
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.
|
|
1520
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TestingLoader, deps: [{ token: TRANSLOCO_TEST_LANGS }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1521
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TestingLoader });
|
|
1485
1522
|
}
|
|
1486
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
1523
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TestingLoader, decorators: [{
|
|
1487
1524
|
type: Injectable
|
|
1488
1525
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
1489
1526
|
type: Inject,
|
|
@@ -1529,11 +1566,11 @@ class TranslocoTestingModule {
|
|
|
1529
1566
|
],
|
|
1530
1567
|
};
|
|
1531
1568
|
}
|
|
1532
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
1533
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.
|
|
1534
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.
|
|
1569
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TranslocoTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1570
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.9", ngImport: i0, type: TranslocoTestingModule, exports: [TranslocoModule] });
|
|
1571
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TranslocoTestingModule, imports: [TranslocoModule] });
|
|
1535
1572
|
}
|
|
1536
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
1573
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: TranslocoTestingModule, decorators: [{
|
|
1537
1574
|
type: NgModule,
|
|
1538
1575
|
args: [{
|
|
1539
1576
|
exports: [TranslocoModule],
|