@o3r/localization 11.6.0-prerelease.2 → 11.6.0-prerelease.21

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.
Files changed (125) hide show
  1. package/annotations/localization.d.ts.map +1 -1
  2. package/builders/helpers/localization.generator.d.ts +1 -1
  3. package/builders/helpers/localization.generator.d.ts.map +1 -1
  4. package/builders/helpers/localization.generator.js +20 -22
  5. package/builders/i18n/index.d.ts.map +1 -1
  6. package/builders/i18n/index.js +2 -2
  7. package/builders/i18n/schema.d.ts +0 -2
  8. package/builders/i18n/schema.d.ts.map +1 -1
  9. package/builders/localization/index.d.ts +0 -2
  10. package/builders/localization/index.d.ts.map +1 -1
  11. package/builders/localization/index.js +28 -41
  12. package/builders/localization/schema.d.ts.map +1 -1
  13. package/builders/localization-extractor/index.d.ts.map +1 -1
  14. package/builders/localization-extractor/index.js +19 -19
  15. package/builders/localization-extractor/schema.d.ts.map +1 -1
  16. package/builders/localization-extractor/validations.d.ts +0 -2
  17. package/builders/localization-extractor/validations.d.ts.map +1 -1
  18. package/builders/localization-extractor/validations.js +3 -7
  19. package/builders/metadata-check/helpers/localization-metadata-comparison.helper.d.ts +2 -2
  20. package/builders/metadata-check/helpers/localization-metadata-comparison.helper.d.ts.map +1 -1
  21. package/builders/metadata-check/index.d.ts.map +1 -1
  22. package/builders/metadata-check/schema.d.ts.map +1 -1
  23. package/core/localization.configuration.d.ts +1 -1
  24. package/core/localization.configuration.d.ts.map +1 -1
  25. package/core/translatable.d.ts.map +1 -1
  26. package/core/translate-messageformat-lazy.compiler.d.ts +1 -1
  27. package/core/translate-messageformat-lazy.compiler.d.ts.map +1 -1
  28. package/devkit/localization-devkit.interface.d.ts.map +1 -1
  29. package/devkit/localization-devtools.console.service.d.ts.map +1 -1
  30. package/devkit/localization-devtools.message.service.d.ts +1 -2
  31. package/devkit/localization-devtools.message.service.d.ts.map +1 -1
  32. package/devkit/localization-devtools.module.d.ts.map +1 -1
  33. package/devkit/localization-devtools.service.d.ts.map +1 -1
  34. package/devkit/localization-devtools.token.d.ts +1 -1
  35. package/devkit/localization-devtools.token.d.ts.map +1 -1
  36. package/esm2022/annotations/localization.mjs +3 -3
  37. package/esm2022/core/index.mjs +1 -1
  38. package/esm2022/core/localization.configuration.mjs +1 -1
  39. package/esm2022/core/translatable.mjs +1 -1
  40. package/esm2022/core/translate-messageformat-lazy.compiler.mjs +12 -13
  41. package/esm2022/devkit/index.mjs +1 -1
  42. package/esm2022/devkit/localization-devkit.interface.mjs +1 -1
  43. package/esm2022/devkit/localization-devtools.console.service.mjs +8 -10
  44. package/esm2022/devkit/localization-devtools.message.service.mjs +12 -13
  45. package/esm2022/devkit/localization-devtools.module.mjs +11 -11
  46. package/esm2022/devkit/localization-devtools.service.mjs +8 -8
  47. package/esm2022/devkit/localization-devtools.token.mjs +2 -2
  48. package/esm2022/public_api.mjs +1 -2
  49. package/esm2022/rules-engine/localization.handler-action.mjs +8 -8
  50. package/esm2022/rules-engine/localization.interfaces.mjs +1 -1
  51. package/esm2022/rules-engine/localization.rules-engine.module.mjs +8 -8
  52. package/esm2022/stores/index.mjs +1 -1
  53. package/esm2022/stores/localization-override/localization-override.actions.mjs +2 -2
  54. package/esm2022/stores/localization-override/localization-override.module.mjs +9 -9
  55. package/esm2022/stores/localization-override/localization-override.reducer.mjs +2 -2
  56. package/esm2022/stores/localization-override/localization-override.selectors.mjs +3 -3
  57. package/esm2022/stores/localization-override/localization-override.state.mjs +1 -1
  58. package/esm2022/stores/localization-override/localization-override.sync.mjs +2 -2
  59. package/esm2022/tools/index.mjs +1 -1
  60. package/esm2022/tools/localization-translate.directive.mjs +9 -9
  61. package/esm2022/tools/localization-translate.pipe.mjs +11 -11
  62. package/esm2022/tools/localization.module.mjs +27 -25
  63. package/esm2022/tools/localization.provider.mjs +7 -7
  64. package/esm2022/tools/localization.service.mjs +21 -26
  65. package/esm2022/tools/localization.token.mjs +2 -2
  66. package/esm2022/tools/localized-currency.pipe.mjs +7 -7
  67. package/esm2022/tools/localized-date.pipe.mjs +8 -13
  68. package/esm2022/tools/localized-decimal.pipe.mjs +7 -7
  69. package/esm2022/tools/text-direction.service.mjs +9 -9
  70. package/esm2022/tools/text-directionality.service.mjs +7 -7
  71. package/esm2022/tools/translations-loader.mjs +16 -16
  72. package/fesm2022/o3r-localization-rules-engine.mjs +7 -7
  73. package/fesm2022/o3r-localization-rules-engine.mjs.map +1 -1
  74. package/fesm2022/o3r-localization.mjs +87 -99
  75. package/fesm2022/o3r-localization.mjs.map +1 -1
  76. package/migration.json +5 -0
  77. package/package.json +6 -6
  78. package/public_api.d.ts +0 -1
  79. package/public_api.d.ts.map +1 -1
  80. package/rules-engine/localization.handler-action.d.ts +1 -1
  81. package/rules-engine/localization.handler-action.d.ts.map +1 -1
  82. package/rules-engine/localization.interfaces.d.ts.map +1 -1
  83. package/rules-engine/localization.rules-engine.module.d.ts.map +1 -1
  84. package/schematics/add-localization-key/index.d.ts.map +1 -1
  85. package/schematics/add-localization-key/index.js +34 -16
  86. package/schematics/add-localization-key/schema.d.ts.map +1 -1
  87. package/schematics/cms-adapter/index.d.ts.map +1 -1
  88. package/schematics/cms-adapter/index.js +1 -1
  89. package/schematics/localization-base/index.d.ts.map +1 -1
  90. package/schematics/localization-base/index.js +25 -26
  91. package/schematics/localization-to-component/index.d.ts.map +1 -1
  92. package/schematics/localization-to-component/index.js +10 -5
  93. package/schematics/localization-to-component/schema.d.ts.map +1 -1
  94. package/schematics/localization-to-component/templates/__name__.translation.ts.template +1 -1
  95. package/schematics/ng-add/helpers/devtools-registration.d.ts +0 -3
  96. package/schematics/ng-add/helpers/devtools-registration.d.ts.map +1 -1
  97. package/schematics/ng-add/helpers/devtools-registration.js +2 -5
  98. package/schematics/ng-add/index.d.ts.map +1 -1
  99. package/schematics/ng-add/index.js +2 -8
  100. package/schematics/ng-add/schema.d.ts.map +1 -1
  101. package/schematics/ng-update/v10-0/index.d.ts.map +1 -1
  102. package/schematics/ng-update/v10-0/index.js +2 -1
  103. package/schematics/ng-update/v11-6/index.d.ts +6 -0
  104. package/schematics/ng-update/v11-6/index.d.ts.map +1 -0
  105. package/schematics/ng-update/v11-6/index.js +22 -0
  106. package/stores/localization-override/localization-override.actions.d.ts.map +1 -1
  107. package/stores/localization-override/localization-override.module.d.ts.map +1 -1
  108. package/stores/localization-override/localization-override.reducer.d.ts.map +1 -1
  109. package/stores/localization-override/localization-override.selectors.d.ts.map +1 -1
  110. package/stores/localization-override/localization-override.state.d.ts.map +1 -1
  111. package/stores/localization-override/localization-override.sync.d.ts.map +1 -1
  112. package/tools/localization-translate.directive.d.ts.map +1 -1
  113. package/tools/localization-translate.pipe.d.ts.map +1 -1
  114. package/tools/localization.module.d.ts.map +1 -1
  115. package/tools/localization.provider.d.ts +1 -1
  116. package/tools/localization.provider.d.ts.map +1 -1
  117. package/tools/localization.service.d.ts.map +1 -1
  118. package/tools/localization.token.d.ts.map +1 -1
  119. package/tools/localized-currency.pipe.d.ts.map +1 -1
  120. package/tools/localized-date.pipe.d.ts.map +1 -1
  121. package/tools/localized-decimal.pipe.d.ts.map +1 -1
  122. package/tools/text-direction.service.d.ts.map +1 -1
  123. package/tools/text-directionality.service.d.ts.map +1 -1
  124. package/tools/translations-loader.d.ts +2 -2
  125. package/tools/translations-loader.d.ts.map +1 -1
@@ -20,7 +20,7 @@ import { DynamicContentModule, DynamicContentService } from '@o3r/dynamic-conten
20
20
  * Decorator to pass localization url
21
21
  * @param _url
22
22
  */
23
- // eslint-disable-next-line @typescript-eslint/naming-convention
23
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- decorator should start with a capital letter
24
24
  function Localization(_url) {
25
25
  return (target, key) => {
26
26
  const privateField = _url || `_${key}`;
@@ -91,8 +91,8 @@ class TranslateMessageFormatLazyCompiler extends TranslateCompiler {
91
91
  }
92
92
  /** @inheritDoc */
93
93
  compileTranslations(translations, lang) {
94
- const compilingStrategy = this.config.enableCache ?
95
- (acc, key) => {
94
+ const compilingStrategy = this.config.enableCache
95
+ ? (acc, key) => {
96
96
  acc[key] = (params) => {
97
97
  const cached = this.cache[`${lang}_${key}`];
98
98
  if (cached) {
@@ -103,18 +103,17 @@ class TranslateMessageFormatLazyCompiler extends TranslateCompiler {
103
103
  return newCachedItem.format(params);
104
104
  };
105
105
  return acc;
106
- } :
107
- (acc, key) => {
106
+ }
107
+ : (acc, key) => {
108
108
  acc[key] = (params) => new IntlMessageFormat(translations[key], lang, undefined, this.config).format(params);
109
109
  return acc;
110
110
  };
111
- return Object.keys(translations)
112
- .reduce(compilingStrategy, {});
111
+ return Object.keys(translations).reduce((acc, key) => compilingStrategy(acc, key), {});
113
112
  }
114
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: TranslateMessageFormatLazyCompiler, deps: [{ token: MESSAGE_FORMAT_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
115
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: TranslateMessageFormatLazyCompiler }); }
113
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TranslateMessageFormatLazyCompiler, deps: [{ token: MESSAGE_FORMAT_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
114
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TranslateMessageFormatLazyCompiler }); }
116
115
  }
117
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: TranslateMessageFormatLazyCompiler, decorators: [{
116
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TranslateMessageFormatLazyCompiler, decorators: [{
118
117
  type: Injectable
119
118
  }], ctorParameters: () => [{ type: undefined, decorators: [{
120
119
  type: Optional
@@ -165,13 +164,13 @@ class LocalizationOverrideStoreModule {
165
164
  ]
166
165
  };
167
166
  }
168
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: LocalizationOverrideStoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
169
- /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.12", ngImport: i0, type: LocalizationOverrideStoreModule, imports: [i3.StoreFeatureModule] }); }
170
- /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: LocalizationOverrideStoreModule, providers: [
167
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LocalizationOverrideStoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
168
+ /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: LocalizationOverrideStoreModule, imports: [i3.StoreFeatureModule] }); }
169
+ /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LocalizationOverrideStoreModule, providers: [
171
170
  { provide: LOCALIZATION_OVERRIDE_REDUCER_TOKEN, useFactory: getDefaultLocalizationOverrideReducer }
172
171
  ], imports: [StoreModule.forFeature(LOCALIZATION_OVERRIDE_STORE_NAME, LOCALIZATION_OVERRIDE_REDUCER_TOKEN)] }); }
173
172
  }
174
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: LocalizationOverrideStoreModule, decorators: [{
173
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LocalizationOverrideStoreModule, decorators: [{
175
174
  type: NgModule,
176
175
  args: [{
177
176
  imports: [
@@ -201,7 +200,6 @@ const localizationOverrideStorageSync = {
201
200
  /** Localization Configuration Token */
202
201
  const LOCALIZATION_CONFIGURATION_TOKEN = new InjectionToken('Localization Configuration injection token');
203
202
 
204
- /* eslint-disable @typescript-eslint/ban-types */
205
203
  /**
206
204
  * Service which is wrapping the configuration logic of TranslateService from ngx-translate
207
205
  * Any application willing to use localization just needs to inject LocalizationService
@@ -217,7 +215,6 @@ class LocalizationService {
217
215
  /**
218
216
  * Internal subject that we use to track changes between keys only and translation mode
219
217
  */
220
- // eslint-disable-next-line @typescript-eslint/naming-convention
221
218
  this._showKeys$ = new BehaviorSubject(false);
222
219
  /**
223
220
  * _showKeys$ exposed as an Observable
@@ -236,12 +233,12 @@ class LocalizationService {
236
233
  * @returns selected language if supported, fallback language otherwise.
237
234
  */
238
235
  checkFallbackLocalesMap(language) {
239
- if (language && this.configuration.supportedLocales.indexOf(language) === -1) {
236
+ if (language && !this.configuration.supportedLocales.includes(language)) {
240
237
  const closestSupportedLanguageCode = this.getFirstClosestSupportedLanguageCode(language);
241
238
  const fallbackForLanguage = this.getFallbackMapLangCode(language);
242
- const fallbackStrategyDebug = fallbackForLanguage && ' associated fallback language ' ||
243
- closestSupportedLanguageCode && ' closest supported language ' ||
244
- this.configuration.fallbackLanguage && ' configured default language ';
239
+ const fallbackStrategyDebug = (fallbackForLanguage && ' associated fallback language ')
240
+ || (closestSupportedLanguageCode && ' closest supported language ')
241
+ || (this.configuration.fallbackLanguage && ' configured default language ');
245
242
  const fallbackLang = fallbackForLanguage || closestSupportedLanguageCode || this.configuration.fallbackLanguage || language;
246
243
  if (language !== fallbackLang) {
247
244
  this.logger.debug(`Non supported languages ${language} will fallback to ${fallbackStrategyDebug} ${fallbackLang}`);
@@ -344,7 +341,7 @@ class LocalizationService {
344
341
  if (!this.configuration.enableTranslationDeactivation) {
345
342
  throw new Error('Translation deactivation is not enabled. Please set the LocalizationConfiguration property "enableTranslationDeactivation" accordingly.');
346
343
  }
347
- const newValue = value !== undefined ? value : !this.showKeys;
344
+ const newValue = value === undefined ? !this.showKeys : value;
348
345
  this._showKeys$.next(newValue);
349
346
  }
350
347
  /**
@@ -358,12 +355,9 @@ class LocalizationService {
358
355
  * @param requestedKey Original translation key
359
356
  */
360
357
  getKey(requestedKey) {
361
- if (this.keyMapping$) {
362
- return this.keyMapping$.pipe(map((keyMapping) => keyMapping && keyMapping[requestedKey] || requestedKey), distinctUntilChanged());
363
- }
364
- else {
365
- return of(requestedKey);
366
- }
358
+ return this.keyMapping$
359
+ ? this.keyMapping$.pipe(map((keyMapping) => keyMapping?.[requestedKey] || requestedKey), distinctUntilChanged())
360
+ : of(requestedKey);
367
361
  }
368
362
  /**
369
363
  * Returns a stream of translated values of a key which updates whenever the language changes.
@@ -372,12 +366,12 @@ class LocalizationService {
372
366
  * @returns A stream of the translated key
373
367
  */
374
368
  translate(key, interpolateParams) {
375
- return this.getKey(key).pipe(switchMap((translationKey) => this.getTranslationStream(translationKey, interpolateParams)), shareReplay(1));
369
+ return this.getKey(key).pipe(switchMap((translationKey) => this.getTranslationStream(translationKey, interpolateParams)), shareReplay({ refCount: true, bufferSize: 1 }));
376
370
  }
377
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: LocalizationService, deps: [{ token: i2.TranslateService }, { token: i1.LoggerService }, { token: LOCALIZATION_CONFIGURATION_TOKEN }, { token: i3.Store, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
378
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: LocalizationService }); }
371
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LocalizationService, deps: [{ token: i2.TranslateService }, { token: i1.LoggerService }, { token: LOCALIZATION_CONFIGURATION_TOKEN }, { token: i3.Store, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
372
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LocalizationService }); }
379
373
  }
380
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: LocalizationService, decorators: [{
374
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LocalizationService, decorators: [{
381
375
  type: Injectable
382
376
  }], ctorParameters: () => [{ type: i2.TranslateService }, { type: i1.LoggerService }, { type: undefined, decorators: [{
383
377
  type: Inject,
@@ -424,7 +418,7 @@ class LocalizationTranslateDirective extends TranslateDirective {
424
418
  */
425
419
  setContent(node, content) {
426
420
  const key = node.originalContent;
427
- const newContent = this.showKeys ? key : this.localizationConfig.debugMode && key ? `${key} - ${content}` : content;
421
+ const newContent = this.showKeys ? key : (this.localizationConfig.debugMode && key ? `${key} - ${content}` : content);
428
422
  if (typeof node.textContent !== 'undefined' && node.textContent !== null) {
429
423
  node.textContent = newContent;
430
424
  }
@@ -441,10 +435,10 @@ class LocalizationTranslateDirective extends TranslateDirective {
441
435
  this.onKeyChange?.unsubscribe();
442
436
  }
443
437
  }
444
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: LocalizationTranslateDirective, deps: [{ token: LocalizationService }, { token: i2.TranslateService }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: LOCALIZATION_CONFIGURATION_TOKEN }], target: i0.ɵɵFactoryTarget.Directive }); }
445
- /** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.12", type: LocalizationTranslateDirective, selector: "[translate],[ngx-translate]", inputs: { translate: "translate" }, usesInheritance: true, ngImport: i0 }); }
438
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LocalizationTranslateDirective, deps: [{ token: LocalizationService }, { token: i2.TranslateService }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: LOCALIZATION_CONFIGURATION_TOKEN }], target: i0.ɵɵFactoryTarget.Directive }); }
439
+ /** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: LocalizationTranslateDirective, selector: "[translate],[ngx-translate]", inputs: { translate: "translate" }, usesInheritance: true, ngImport: i0 }); }
446
440
  }
447
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: LocalizationTranslateDirective, decorators: [{
441
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LocalizationTranslateDirective, decorators: [{
448
442
  type: Directive,
449
443
  args: [{
450
444
  selector: '[translate],[ngx-translate]'
@@ -512,10 +506,10 @@ class O3rLocalizationTranslatePipe extends TranslatePipe {
512
506
  this.onKeyChange.unsubscribe();
513
507
  }
514
508
  }
515
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: O3rLocalizationTranslatePipe, deps: [{ token: LocalizationService }, { token: i2.TranslateService }, { token: i0.ChangeDetectorRef }, { token: LOCALIZATION_CONFIGURATION_TOKEN }], target: i0.ɵɵFactoryTarget.Pipe }); }
516
- /** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.12", ngImport: i0, type: O3rLocalizationTranslatePipe, name: "o3rTranslate", pure: false }); }
509
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: O3rLocalizationTranslatePipe, deps: [{ token: LocalizationService }, { token: i2.TranslateService }, { token: i0.ChangeDetectorRef }, { token: LOCALIZATION_CONFIGURATION_TOKEN }], target: i0.ɵɵFactoryTarget.Pipe }); }
510
+ /** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: O3rLocalizationTranslatePipe, name: "o3rTranslate", pure: false }); }
517
511
  }
518
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: O3rLocalizationTranslatePipe, decorators: [{
512
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: O3rLocalizationTranslatePipe, decorators: [{
519
513
  type: Pipe,
520
514
  args: [{ name: 'o3rTranslate', pure: false }]
521
515
  }], ctorParameters: () => [{ type: LocalizationService }, { type: i2.TranslateService }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
@@ -527,10 +521,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImpo
527
521
  * @deprecated please use O3rLocalizationTranslatePipe, will be removed in v12.
528
522
  */
529
523
  class LocalizationTranslatePipe extends O3rLocalizationTranslatePipe {
530
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: LocalizationTranslatePipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
531
- /** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.12", ngImport: i0, type: LocalizationTranslatePipe, name: "translate", pure: false }); }
524
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LocalizationTranslatePipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
525
+ /** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: LocalizationTranslatePipe, name: "translate", pure: false }); }
532
526
  }
533
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: LocalizationTranslatePipe, decorators: [{
527
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LocalizationTranslatePipe, decorators: [{
534
528
  type: Pipe,
535
529
  args: [{ name: 'translate', pure: false }]
536
530
  }] });
@@ -551,10 +545,10 @@ class LocalizedCurrencyPipe extends CurrencyPipe {
551
545
  ngOnDestroy() {
552
546
  this.onLangChange.unsubscribe();
553
547
  }
554
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: LocalizedCurrencyPipe, deps: [{ token: LocalizationService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Pipe }); }
555
- /** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.12", ngImport: i0, type: LocalizedCurrencyPipe, name: "currency", pure: false }); }
548
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LocalizedCurrencyPipe, deps: [{ token: LocalizationService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Pipe }); }
549
+ /** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: LocalizedCurrencyPipe, name: "currency", pure: false }); }
556
550
  }
557
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: LocalizedCurrencyPipe, decorators: [{
551
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LocalizedCurrencyPipe, decorators: [{
558
552
  type: Pipe,
559
553
  args: [{
560
554
  name: 'currency',
@@ -573,20 +567,15 @@ class LocalizedDatePipe extends DatePipe {
573
567
  this.onLangChange = this.localizationService.getTranslateService().onLangChange.subscribe(() => this.changeDetectorRef.markForCheck());
574
568
  }
575
569
  transform(value, format = 'mediumDate', timezone, locale) {
576
- if (this.localizationService.showKeys) {
577
- return format;
578
- }
579
- else {
580
- return super.transform(value, format, timezone, locale || this.localizationService.getCurrentLanguage());
581
- }
570
+ return this.localizationService.showKeys ? format : super.transform(value, format, timezone, locale || this.localizationService.getCurrentLanguage());
582
571
  }
583
572
  ngOnDestroy() {
584
573
  this.onLangChange.unsubscribe();
585
574
  }
586
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: LocalizedDatePipe, deps: [{ token: LocalizationService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Pipe }); }
587
- /** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.12", ngImport: i0, type: LocalizedDatePipe, name: "date", pure: false }); }
575
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LocalizedDatePipe, deps: [{ token: LocalizationService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Pipe }); }
576
+ /** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: LocalizedDatePipe, name: "date", pure: false }); }
588
577
  }
589
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: LocalizedDatePipe, decorators: [{
578
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LocalizedDatePipe, decorators: [{
590
579
  type: Pipe,
591
580
  args: [{
592
581
  name: 'date',
@@ -610,10 +599,10 @@ class LocalizedDecimalPipe extends DecimalPipe {
610
599
  ngOnDestroy() {
611
600
  this.onLangChange.unsubscribe();
612
601
  }
613
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: LocalizedDecimalPipe, deps: [{ token: LocalizationService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Pipe }); }
614
- /** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.12", ngImport: i0, type: LocalizedDecimalPipe, name: "decimal", pure: false }); }
602
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LocalizedDecimalPipe, deps: [{ token: LocalizationService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Pipe }); }
603
+ /** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: LocalizedDecimalPipe, name: "decimal", pure: false }); }
615
604
  }
616
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: LocalizedDecimalPipe, decorators: [{
605
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LocalizedDecimalPipe, decorators: [{
617
606
  type: Pipe,
618
607
  args: [{
619
608
  name: 'decimal',
@@ -641,16 +630,16 @@ class TextDirectionService {
641
630
  return this.subscription;
642
631
  }
643
632
  this.subscription = this.translateService.onLangChange.subscribe((event) => {
644
- const direction = this.configuration.rtlLanguages.indexOf(event.lang.split('-')[0]) > -1 ? 'rtl' : 'ltr';
633
+ const direction = this.configuration.rtlLanguages.includes(event.lang.split('-')[0]) ? 'rtl' : 'ltr';
645
634
  this.renderer.setAttribute(document.body, 'dir', direction);
646
635
  this.directionality.change.emit(direction);
647
636
  });
648
637
  return this.subscription;
649
638
  }
650
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: TextDirectionService, deps: [{ token: i2.TranslateService }, { token: LOCALIZATION_CONFIGURATION_TOKEN }, { token: i0.RendererFactory2 }, { token: i2$1.Directionality }], target: i0.ɵɵFactoryTarget.Injectable }); }
651
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: TextDirectionService }); }
639
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TextDirectionService, deps: [{ token: i2.TranslateService }, { token: LOCALIZATION_CONFIGURATION_TOKEN }, { token: i0.RendererFactory2 }, { token: i2$1.Directionality }], target: i0.ɵɵFactoryTarget.Injectable }); }
640
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TextDirectionService }); }
652
641
  }
653
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: TextDirectionService, decorators: [{
642
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TextDirectionService, decorators: [{
654
643
  type: Injectable
655
644
  }], ctorParameters: () => [{ type: i2.TranslateService }, { type: undefined, decorators: [{
656
645
  type: Inject,
@@ -667,10 +656,10 @@ class TextDirectionality extends Directionality {
667
656
  ngOnDestroy() {
668
657
  this.change.complete();
669
658
  }
670
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: TextDirectionality, deps: [{ token: DIR_DOCUMENT, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
671
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: TextDirectionality }); }
659
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TextDirectionality, deps: [{ token: DIR_DOCUMENT, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
660
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TextDirectionality }); }
672
661
  }
673
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: TextDirectionality, decorators: [{
662
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TextDirectionality, decorators: [{
674
663
  type: Injectable
675
664
  }], ctorParameters: () => [{ type: undefined, decorators: [{
676
665
  type: Optional
@@ -686,7 +675,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImpo
686
675
  function createLocalizationConfiguration(configuration) {
687
676
  return {
688
677
  ...DEFAULT_LOCALIZATION_CONFIGURATION,
689
- ...(configuration || {})
678
+ ...configuration
690
679
  };
691
680
  }
692
681
  /**
@@ -713,16 +702,18 @@ class LocalizationModule {
713
702
  ngModule: LocalizationModule,
714
703
  providers: [
715
704
  LocalizationService,
716
- ...(configuration ? [{
717
- provide: CUSTOM_LOCALIZATION_CONFIGURATION_TOKEN,
718
- useFactory: configuration
719
- }] : [])
705
+ ...(configuration
706
+ ? [{
707
+ provide: CUSTOM_LOCALIZATION_CONFIGURATION_TOKEN,
708
+ useFactory: configuration
709
+ }]
710
+ : [])
720
711
  ]
721
712
  };
722
713
  }
723
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: LocalizationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
724
- /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.12", ngImport: i0, type: LocalizationModule, declarations: [O3rLocalizationTranslatePipe, LocalizationTranslatePipe, LocalizationTranslateDirective, LocalizedDatePipe, LocalizedDecimalPipe, LocalizedCurrencyPipe], imports: [TranslateModule, BidiModule, DynamicContentModule, CommonModule], exports: [TranslateModule, O3rLocalizationTranslatePipe, LocalizationTranslatePipe, LocalizationTranslateDirective, LocalizedDatePipe, LocalizedDecimalPipe, LocalizedCurrencyPipe] }); }
725
- /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: LocalizationModule, providers: [
714
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LocalizationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
715
+ /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: LocalizationModule, declarations: [O3rLocalizationTranslatePipe, LocalizationTranslatePipe, LocalizationTranslateDirective, LocalizedDatePipe, LocalizedDecimalPipe, LocalizedCurrencyPipe], imports: [TranslateModule, BidiModule, DynamicContentModule, CommonModule], exports: [TranslateModule, O3rLocalizationTranslatePipe, LocalizationTranslatePipe, LocalizationTranslateDirective, LocalizedDatePipe, LocalizedDecimalPipe, LocalizedCurrencyPipe] }); }
716
+ /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LocalizationModule, providers: [
726
717
  { provide: LOCALIZATION_CONFIGURATION_TOKEN, useFactory: createLocalizationConfiguration, deps: [[new Optional(), CUSTOM_LOCALIZATION_CONFIGURATION_TOKEN]] },
727
718
  { provide: LOCALE_ID, useFactory: localeIdNgBridge, deps: [LocalizationService] },
728
719
  { provide: Directionality, useClass: TextDirectionality },
@@ -732,7 +723,7 @@ class LocalizationModule {
732
723
  TextDirectionService
733
724
  ], imports: [TranslateModule, BidiModule, DynamicContentModule, CommonModule, TranslateModule] }); }
734
725
  }
735
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: LocalizationModule, decorators: [{
726
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LocalizationModule, decorators: [{
736
727
  type: NgModule,
737
728
  args: [{
738
729
  declarations: [O3rLocalizationTranslatePipe, LocalizationTranslatePipe, LocalizationTranslateDirective, LocalizedDatePipe, LocalizedDecimalPipe, LocalizedCurrencyPipe],
@@ -783,7 +774,7 @@ class TranslationsLoader {
783
774
  let localizationPath$ = of(this.localizationConfiguration.endPointUrl);
784
775
  if (this.localizationConfiguration.useDynamicContent) {
785
776
  if (!this.dynamicContentService) {
786
- throw Error('Dynamic Content is not available. Please verify you have imported the module DynamicContentModule in your application');
777
+ throw new Error('Dynamic Content is not available. Please verify you have imported the module DynamicContentModule in your application');
787
778
  }
788
779
  localizationPath$ = this.dynamicContentService.getContentPathStream(this.localizationConfiguration.endPointUrl);
789
780
  }
@@ -829,20 +820,20 @@ class TranslationsLoader {
829
820
  getTranslationFromLocal(lang, fallbackLanguage) {
830
821
  const pathPrefix = this.localizationConfiguration.bundlesOutputPath;
831
822
  return this.downloadLanguageBundle$(pathPrefix + lang + JSON_EXT).pipe(catchError(() => {
832
- if (lang !== fallbackLanguage) {
833
- this.logger?.warn(`Failed to load ${lang} from ${pathPrefix + lang + JSON_EXT}. Application will fallback to ${fallbackLanguage}`);
834
- return this.downloadLanguageBundle$(pathPrefix + fallbackLanguage + JSON_EXT).pipe(catchError(() => of({})));
835
- }
836
- else {
823
+ if (lang === fallbackLanguage) {
837
824
  this.logger?.warn(`Failed to load ${lang} from ${pathPrefix + lang + JSON_EXT}.`);
838
825
  return of({});
839
826
  }
827
+ else {
828
+ this.logger?.warn(`Failed to load ${lang} from ${pathPrefix + lang + JSON_EXT}. Application will fallback to ${fallbackLanguage}`);
829
+ return this.downloadLanguageBundle$(pathPrefix + fallbackLanguage + JSON_EXT).pipe(catchError(() => of({})));
830
+ }
840
831
  }));
841
832
  }
842
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: TranslationsLoader, deps: [{ token: LOCALIZATION_CONFIGURATION_TOKEN }, { token: i1.LoggerService, optional: true }, { token: i2$2.DynamicContentService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
843
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: TranslationsLoader }); }
833
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TranslationsLoader, deps: [{ token: LOCALIZATION_CONFIGURATION_TOKEN }, { token: i1.LoggerService, optional: true }, { token: i2$2.DynamicContentService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
834
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TranslationsLoader }); }
844
835
  }
845
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: TranslationsLoader, decorators: [{
836
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TranslationsLoader, decorators: [{
846
837
  type: Injectable
847
838
  }], ctorParameters: () => [{ type: undefined, decorators: [{
848
839
  type: Inject,
@@ -953,10 +944,10 @@ class OtterLocalizationDevtools {
953
944
  this.localizationService.getTranslateService().setTranslation(language || this.getCurrentLanguage(), initialLocs);
954
945
  this.appRef.tick();
955
946
  }
956
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: OtterLocalizationDevtools, deps: [{ token: LocalizationService }, { token: i2.TranslateCompiler }, { token: i0.ApplicationRef }], target: i0.ɵɵFactoryTarget.Injectable }); }
957
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: OtterLocalizationDevtools }); }
947
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: OtterLocalizationDevtools, deps: [{ token: LocalizationService }, { token: i2.TranslateCompiler }, { token: i0.ApplicationRef }], target: i0.ɵɵFactoryTarget.Injectable }); }
948
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: OtterLocalizationDevtools }); }
958
949
  }
959
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: OtterLocalizationDevtools, decorators: [{
950
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: OtterLocalizationDevtools, decorators: [{
960
951
  type: Injectable
961
952
  }], ctorParameters: () => [{ type: LocalizationService }, { type: i2.TranslateCompiler }, { type: i0.ApplicationRef }] });
962
953
 
@@ -967,7 +958,7 @@ const OTTER_LOCALIZATION_DEVTOOLS_DEFAULT_OPTIONS = {
967
958
  };
968
959
  const OTTER_LOCALIZATION_DEVTOOLS_OPTIONS = new InjectionToken('Otter Localization Devtools options');
969
960
 
970
- /* eslint-disable no-console */
961
+ /* eslint-disable no-console -- This is the purpose of this service */
971
962
  class LocalizationDevtoolsConsoleService {
972
963
  /** Name of the Window property to access to the devtools */
973
964
  static { this.windowModuleName = 'localization'; }
@@ -983,9 +974,7 @@ class LocalizationDevtoolsConsoleService {
983
974
  /** @inheritDoc */
984
975
  activate() {
985
976
  const windowWithDevtools = window;
986
- // eslint-disable-next-line no-underscore-dangle
987
977
  windowWithDevtools._OTTER_DEVTOOLS_ ||= {};
988
- // eslint-disable-next-line no-underscore-dangle
989
978
  windowWithDevtools._OTTER_DEVTOOLS_[LocalizationDevtoolsConsoleService.windowModuleName] = this;
990
979
  console.info(`Otter localization Devtools is now accessible via the _OTTER_DEVTOOLS_.${LocalizationDevtoolsConsoleService.windowModuleName} variable`);
991
980
  }
@@ -1039,10 +1028,10 @@ class LocalizationDevtoolsConsoleService {
1039
1028
  reloadLocalizationKeys(language) {
1040
1029
  return this.localizationDevtools.reloadLocalizationKeys(language);
1041
1030
  }
1042
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: LocalizationDevtoolsConsoleService, deps: [{ token: OtterLocalizationDevtools }, { token: OTTER_LOCALIZATION_DEVTOOLS_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
1043
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: LocalizationDevtoolsConsoleService }); }
1031
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LocalizationDevtoolsConsoleService, deps: [{ token: OtterLocalizationDevtools }, { token: OTTER_LOCALIZATION_DEVTOOLS_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
1032
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LocalizationDevtoolsConsoleService }); }
1044
1033
  }
1045
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: LocalizationDevtoolsConsoleService, decorators: [{
1034
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LocalizationDevtoolsConsoleService, decorators: [{
1046
1035
  type: Injectable
1047
1036
  }], ctorParameters: () => [{ type: OtterLocalizationDevtools }, { type: undefined, decorators: [{
1048
1037
  type: Optional
@@ -1110,8 +1099,7 @@ class LocalizationDevtoolsMessageService {
1110
1099
  }
1111
1100
  /**
1112
1101
  * Function to handle the incoming messages from Otter Chrome DevTools extension
1113
- * @param event Event coming from the Otter Chrome DevTools extension
1114
- * @param message
1102
+ * @param message Message coming from the Otter Chrome DevTools extension
1115
1103
  */
1116
1104
  handleEvents(message) {
1117
1105
  this.logger.debug('Message handling by the localization service', message);
@@ -1161,10 +1149,10 @@ class LocalizationDevtoolsMessageService {
1161
1149
  ngOnDestroy() {
1162
1150
  this.subscriptions.unsubscribe();
1163
1151
  }
1164
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: LocalizationDevtoolsMessageService, deps: [{ token: i1.LoggerService }, { token: OtterLocalizationDevtools }, { token: LocalizationService }, { token: OTTER_LOCALIZATION_DEVTOOLS_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
1165
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: LocalizationDevtoolsMessageService }); }
1152
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LocalizationDevtoolsMessageService, deps: [{ token: i1.LoggerService }, { token: OtterLocalizationDevtools }, { token: LocalizationService }, { token: OTTER_LOCALIZATION_DEVTOOLS_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
1153
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LocalizationDevtoolsMessageService }); }
1166
1154
  }
1167
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: LocalizationDevtoolsMessageService, decorators: [{
1155
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LocalizationDevtoolsMessageService, decorators: [{
1168
1156
  type: Injectable
1169
1157
  }], ctorParameters: () => [{ type: i1.LoggerService }, { type: OtterLocalizationDevtools }, { type: LocalizationService }, { type: undefined, decorators: [{
1170
1158
  type: Optional
@@ -1189,16 +1177,16 @@ class LocalizationDevtoolsModule {
1189
1177
  ]
1190
1178
  };
1191
1179
  }
1192
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: LocalizationDevtoolsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1193
- /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.12", ngImport: i0, type: LocalizationDevtoolsModule, imports: [LocalizationModule] }); }
1194
- /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: LocalizationDevtoolsModule, providers: [
1180
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LocalizationDevtoolsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1181
+ /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: LocalizationDevtoolsModule, imports: [LocalizationModule] }); }
1182
+ /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LocalizationDevtoolsModule, providers: [
1195
1183
  { provide: OTTER_LOCALIZATION_DEVTOOLS_OPTIONS, useValue: OTTER_LOCALIZATION_DEVTOOLS_DEFAULT_OPTIONS },
1196
1184
  LocalizationDevtoolsMessageService,
1197
1185
  LocalizationDevtoolsConsoleService,
1198
1186
  OtterLocalizationDevtools
1199
1187
  ], imports: [LocalizationModule] }); }
1200
1188
  }
1201
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: LocalizationDevtoolsModule, decorators: [{
1189
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LocalizationDevtoolsModule, decorators: [{
1202
1190
  type: NgModule,
1203
1191
  args: [{
1204
1192
  imports: [