@o3r/localization 14.1.0-prerelease.4 → 14.1.0-prerelease.41
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.
|
@@ -23,21 +23,21 @@ class LocalizationRulesEngineActionHandler {
|
|
|
23
23
|
}, {});
|
|
24
24
|
this.store.dispatch(setLocalizationOverride({ state: { localizationOverrides } }));
|
|
25
25
|
}
|
|
26
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
27
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.
|
|
26
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: LocalizationRulesEngineActionHandler, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
27
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: LocalizationRulesEngineActionHandler }); }
|
|
28
28
|
}
|
|
29
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: LocalizationRulesEngineActionHandler, decorators: [{
|
|
30
30
|
type: Injectable
|
|
31
31
|
}] });
|
|
32
32
|
|
|
33
33
|
class LocalizationRulesEngineActionModule {
|
|
34
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
35
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.
|
|
36
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.
|
|
34
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: LocalizationRulesEngineActionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
35
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.1.4", ngImport: i0, type: LocalizationRulesEngineActionModule, imports: [LocalizationOverrideStoreModule] }); }
|
|
36
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: LocalizationRulesEngineActionModule, providers: [
|
|
37
37
|
LocalizationRulesEngineActionHandler
|
|
38
38
|
], imports: [LocalizationOverrideStoreModule] }); }
|
|
39
39
|
}
|
|
40
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: LocalizationRulesEngineActionModule, decorators: [{
|
|
41
41
|
type: NgModule,
|
|
42
42
|
args: [{
|
|
43
43
|
imports: [
|
|
@@ -108,10 +108,10 @@ class TranslateMessageFormatLazyCompiler extends TranslateCompiler {
|
|
|
108
108
|
};
|
|
109
109
|
return Object.keys(translations).reduce((acc, key) => compilingStrategy(acc, key), {});
|
|
110
110
|
}
|
|
111
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
112
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.
|
|
111
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: TranslateMessageFormatLazyCompiler, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
112
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: TranslateMessageFormatLazyCompiler }); }
|
|
113
113
|
}
|
|
114
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
114
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: TranslateMessageFormatLazyCompiler, decorators: [{
|
|
115
115
|
type: Injectable
|
|
116
116
|
}], ctorParameters: () => [] });
|
|
117
117
|
|
|
@@ -157,13 +157,13 @@ class LocalizationOverrideStoreModule {
|
|
|
157
157
|
]
|
|
158
158
|
};
|
|
159
159
|
}
|
|
160
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
161
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.
|
|
162
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.
|
|
160
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: LocalizationOverrideStoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
161
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.1.4", ngImport: i0, type: LocalizationOverrideStoreModule, imports: [i1.StoreFeatureModule] }); }
|
|
162
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: LocalizationOverrideStoreModule, providers: [
|
|
163
163
|
{ provide: LOCALIZATION_OVERRIDE_REDUCER_TOKEN, useFactory: getDefaultLocalizationOverrideReducer }
|
|
164
164
|
], imports: [StoreModule.forFeature(LOCALIZATION_OVERRIDE_STORE_NAME, LOCALIZATION_OVERRIDE_REDUCER_TOKEN)] }); }
|
|
165
165
|
}
|
|
166
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
166
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: LocalizationOverrideStoreModule, decorators: [{
|
|
167
167
|
type: NgModule,
|
|
168
168
|
args: [{
|
|
169
169
|
imports: [
|
|
@@ -361,10 +361,10 @@ class LocalizationService {
|
|
|
361
361
|
translate(key, interpolateParams) {
|
|
362
362
|
return this.getKey(key).pipe(switchMap((translationKey) => this.getTranslationStream(translationKey, interpolateParams)), shareReplay({ refCount: true, bufferSize: 1 }));
|
|
363
363
|
}
|
|
364
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
365
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.
|
|
364
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: LocalizationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
365
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: LocalizationService }); }
|
|
366
366
|
}
|
|
367
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
367
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: LocalizationService, decorators: [{
|
|
368
368
|
type: Injectable
|
|
369
369
|
}], ctorParameters: () => [] });
|
|
370
370
|
|
|
@@ -428,10 +428,10 @@ class LocalizationTranslateDirective extends TranslateDirective {
|
|
|
428
428
|
this.onKeyChange?.unsubscribe();
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
432
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.
|
|
431
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: LocalizationTranslateDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
432
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.4", type: LocalizationTranslateDirective, isStandalone: false, selector: "[translate],[ngx-translate]", inputs: { translate: "translate" }, usesInheritance: true, ngImport: i0 }); }
|
|
433
433
|
}
|
|
434
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
434
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: LocalizationTranslateDirective, decorators: [{
|
|
435
435
|
type: Directive,
|
|
436
436
|
args: [{
|
|
437
437
|
selector: '[translate],[ngx-translate]',
|
|
@@ -500,10 +500,10 @@ class O3rLocalizationTranslatePipe extends TranslatePipe {
|
|
|
500
500
|
this.onKeyChange.unsubscribe();
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
504
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.
|
|
503
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: O3rLocalizationTranslatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
504
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.1.4", ngImport: i0, type: O3rLocalizationTranslatePipe, isStandalone: false, name: "o3rTranslate", pure: false }); }
|
|
505
505
|
}
|
|
506
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
506
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: O3rLocalizationTranslatePipe, decorators: [{
|
|
507
507
|
type: Pipe,
|
|
508
508
|
args: [{
|
|
509
509
|
name: 'o3rTranslate',
|
|
@@ -528,10 +528,10 @@ class LocalizedCurrencyPipe extends CurrencyPipe {
|
|
|
528
528
|
ngOnDestroy() {
|
|
529
529
|
this.onLangChange.unsubscribe();
|
|
530
530
|
}
|
|
531
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
532
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.
|
|
531
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: LocalizedCurrencyPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
532
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.1.4", ngImport: i0, type: LocalizedCurrencyPipe, isStandalone: false, name: "currency", pure: false }); }
|
|
533
533
|
}
|
|
534
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
534
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: LocalizedCurrencyPipe, decorators: [{
|
|
535
535
|
type: Pipe,
|
|
536
536
|
args: [{
|
|
537
537
|
name: 'currency',
|
|
@@ -556,10 +556,10 @@ class LocalizedDatePipe extends DatePipe {
|
|
|
556
556
|
ngOnDestroy() {
|
|
557
557
|
this.onLangChange.unsubscribe();
|
|
558
558
|
}
|
|
559
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
560
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.
|
|
559
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: LocalizedDatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
560
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.1.4", ngImport: i0, type: LocalizedDatePipe, isStandalone: false, name: "date", pure: false }); }
|
|
561
561
|
}
|
|
562
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
562
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: LocalizedDatePipe, decorators: [{
|
|
563
563
|
type: Pipe,
|
|
564
564
|
args: [{
|
|
565
565
|
name: 'date',
|
|
@@ -584,10 +584,10 @@ class LocalizedDecimalPipe extends DecimalPipe {
|
|
|
584
584
|
ngOnDestroy() {
|
|
585
585
|
this.onLangChange.unsubscribe();
|
|
586
586
|
}
|
|
587
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
588
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.
|
|
587
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: LocalizedDecimalPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
588
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.1.4", ngImport: i0, type: LocalizedDecimalPipe, isStandalone: false, name: "decimal", pure: false }); }
|
|
589
589
|
}
|
|
590
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
590
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: LocalizedDecimalPipe, decorators: [{
|
|
591
591
|
type: Pipe,
|
|
592
592
|
args: [{
|
|
593
593
|
name: 'decimal',
|
|
@@ -622,10 +622,10 @@ class TextDirectionService {
|
|
|
622
622
|
});
|
|
623
623
|
return this.subscription;
|
|
624
624
|
}
|
|
625
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
626
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.
|
|
625
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: TextDirectionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
626
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: TextDirectionService }); }
|
|
627
627
|
}
|
|
628
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
628
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: TextDirectionService, decorators: [{
|
|
629
629
|
type: Injectable
|
|
630
630
|
}], ctorParameters: () => [] });
|
|
631
631
|
|
|
@@ -653,10 +653,10 @@ class TextDirectionality extends Directionality {
|
|
|
653
653
|
ngOnDestroy() {
|
|
654
654
|
this.change.complete();
|
|
655
655
|
}
|
|
656
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
657
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.
|
|
656
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: TextDirectionality, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
657
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: TextDirectionality }); }
|
|
658
658
|
}
|
|
659
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
659
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: TextDirectionality, decorators: [{
|
|
660
660
|
type: Injectable
|
|
661
661
|
}], ctorParameters: () => [] });
|
|
662
662
|
|
|
@@ -703,9 +703,9 @@ class LocalizationModule {
|
|
|
703
703
|
]
|
|
704
704
|
};
|
|
705
705
|
}
|
|
706
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
707
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.
|
|
708
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.
|
|
706
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: LocalizationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
707
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.1.4", ngImport: i0, type: LocalizationModule, declarations: [O3rLocalizationTranslatePipe, LocalizationTranslateDirective, LocalizedDatePipe, LocalizedDecimalPipe, LocalizedCurrencyPipe], imports: [TranslateModule, BidiModule, CommonModule], exports: [TranslateModule, O3rLocalizationTranslatePipe, LocalizationTranslateDirective, LocalizedDatePipe, LocalizedDecimalPipe, LocalizedCurrencyPipe] }); }
|
|
708
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: LocalizationModule, providers: [
|
|
709
709
|
{ provide: LOCALIZATION_CONFIGURATION_TOKEN, useFactory: createLocalizationConfiguration, deps: [[new Optional(), CUSTOM_LOCALIZATION_CONFIGURATION_TOKEN]] },
|
|
710
710
|
{ provide: LOCALE_ID, useFactory: localeIdNgBridge, deps: [LocalizationService] },
|
|
711
711
|
{ provide: Directionality, useClass: TextDirectionality },
|
|
@@ -715,7 +715,7 @@ class LocalizationModule {
|
|
|
715
715
|
TextDirectionService
|
|
716
716
|
], imports: [TranslateModule, BidiModule, CommonModule, TranslateModule] }); }
|
|
717
717
|
}
|
|
718
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
718
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: LocalizationModule, decorators: [{
|
|
719
719
|
type: NgModule,
|
|
720
720
|
args: [{
|
|
721
721
|
declarations: [O3rLocalizationTranslatePipe, LocalizationTranslateDirective, LocalizedDatePipe, LocalizedDecimalPipe, LocalizedCurrencyPipe],
|
|
@@ -822,10 +822,10 @@ class TranslationsLoader {
|
|
|
822
822
|
}
|
|
823
823
|
}));
|
|
824
824
|
}
|
|
825
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
826
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.
|
|
825
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: TranslationsLoader, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
826
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: TranslationsLoader }); }
|
|
827
827
|
}
|
|
828
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
828
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: TranslationsLoader, decorators: [{
|
|
829
829
|
type: Injectable
|
|
830
830
|
}] });
|
|
831
831
|
|
|
@@ -939,10 +939,10 @@ class OtterLocalizationDevtools {
|
|
|
939
939
|
this.localizationService.getTranslateService().setTranslation(language || this.getCurrentLanguage(), initialLocs);
|
|
940
940
|
this.appRef.tick();
|
|
941
941
|
}
|
|
942
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
943
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.
|
|
942
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: OtterLocalizationDevtools, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
943
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: OtterLocalizationDevtools }); }
|
|
944
944
|
}
|
|
945
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
945
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: OtterLocalizationDevtools, decorators: [{
|
|
946
946
|
type: Injectable
|
|
947
947
|
}] });
|
|
948
948
|
|
|
@@ -1023,10 +1023,10 @@ class LocalizationDevtoolsConsoleService {
|
|
|
1023
1023
|
reloadLocalizationKeys(language) {
|
|
1024
1024
|
return this.localizationDevtools.reloadLocalizationKeys(language);
|
|
1025
1025
|
}
|
|
1026
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1027
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.
|
|
1026
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: LocalizationDevtoolsConsoleService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1027
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: LocalizationDevtoolsConsoleService }); }
|
|
1028
1028
|
}
|
|
1029
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1029
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: LocalizationDevtoolsConsoleService, decorators: [{
|
|
1030
1030
|
type: Injectable
|
|
1031
1031
|
}], ctorParameters: () => [] });
|
|
1032
1032
|
|
|
@@ -1135,10 +1135,10 @@ class LocalizationDevtoolsMessageService {
|
|
|
1135
1135
|
activate() {
|
|
1136
1136
|
fromEvent(window, 'message').pipe(takeUntilDestroyed(this.destroyRef), filterMessageContent(isLocalizationMessage)).subscribe((e) => this.handleEvents(e));
|
|
1137
1137
|
}
|
|
1138
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1139
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.
|
|
1138
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: LocalizationDevtoolsMessageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1139
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: LocalizationDevtoolsMessageService }); }
|
|
1140
1140
|
}
|
|
1141
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1141
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: LocalizationDevtoolsMessageService, decorators: [{
|
|
1142
1142
|
type: Injectable
|
|
1143
1143
|
}], ctorParameters: () => [] });
|
|
1144
1144
|
|
|
@@ -1158,16 +1158,16 @@ class LocalizationDevtoolsModule {
|
|
|
1158
1158
|
]
|
|
1159
1159
|
};
|
|
1160
1160
|
}
|
|
1161
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1162
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.
|
|
1163
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.
|
|
1161
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: LocalizationDevtoolsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1162
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.1.4", ngImport: i0, type: LocalizationDevtoolsModule, imports: [LocalizationModule] }); }
|
|
1163
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: LocalizationDevtoolsModule, providers: [
|
|
1164
1164
|
{ provide: OTTER_LOCALIZATION_DEVTOOLS_OPTIONS, useValue: OTTER_LOCALIZATION_DEVTOOLS_DEFAULT_OPTIONS },
|
|
1165
1165
|
LocalizationDevtoolsMessageService,
|
|
1166
1166
|
LocalizationDevtoolsConsoleService,
|
|
1167
1167
|
OtterLocalizationDevtools
|
|
1168
1168
|
], imports: [LocalizationModule] }); }
|
|
1169
1169
|
}
|
|
1170
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1170
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.4", ngImport: i0, type: LocalizationDevtoolsModule, decorators: [{
|
|
1171
1171
|
type: NgModule,
|
|
1172
1172
|
args: [{
|
|
1173
1173
|
imports: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@o3r/localization",
|
|
3
|
-
"version": "14.1.0-prerelease.
|
|
3
|
+
"version": "14.1.0-prerelease.41",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -43,18 +43,18 @@
|
|
|
43
43
|
"@formatjs/intl-numberformat": "^9.0.0",
|
|
44
44
|
"@ngrx/store": "^21.0.0",
|
|
45
45
|
"@ngx-translate/core": "^15.0.0 || ~16.0.4",
|
|
46
|
-
"@o3r/core": "~14.1.0-prerelease.
|
|
47
|
-
"@o3r/dynamic-content": "~14.1.0-prerelease.
|
|
48
|
-
"@o3r/extractors": "~14.1.0-prerelease.
|
|
49
|
-
"@o3r/logger": "~14.1.0-prerelease.
|
|
50
|
-
"@o3r/schematics": "~14.1.0-prerelease.
|
|
46
|
+
"@o3r/core": "~14.1.0-prerelease.41",
|
|
47
|
+
"@o3r/dynamic-content": "~14.1.0-prerelease.41",
|
|
48
|
+
"@o3r/extractors": "~14.1.0-prerelease.41",
|
|
49
|
+
"@o3r/logger": "~14.1.0-prerelease.41",
|
|
50
|
+
"@o3r/schematics": "~14.1.0-prerelease.41",
|
|
51
51
|
"@schematics/angular": "^21.0.0",
|
|
52
52
|
"@yarnpkg/cli": "^4.3.1",
|
|
53
53
|
"@yarnpkg/core": "^4.1.1",
|
|
54
54
|
"@yarnpkg/fslib": "^3.1.0",
|
|
55
55
|
"@yarnpkg/plugin-npm": "^3.0.1",
|
|
56
56
|
"@yarnpkg/plugin-pack": "^4.0.0",
|
|
57
|
-
"chokidar": "^4.0.
|
|
57
|
+
"chokidar": "^4.0.0 || ^5.0.0",
|
|
58
58
|
"globby": "^11.1.0",
|
|
59
59
|
"intl-messageformat": "^11.0.0",
|
|
60
60
|
"rxjs": "^7.8.1",
|
|
@@ -113,11 +113,11 @@
|
|
|
113
113
|
}
|
|
114
114
|
},
|
|
115
115
|
"dependencies": {
|
|
116
|
-
"@o3r/schematics": "~14.1.0-prerelease.
|
|
116
|
+
"@o3r/schematics": "~14.1.0-prerelease.41",
|
|
117
117
|
"tslib": "^2.6.2"
|
|
118
118
|
},
|
|
119
119
|
"engines": {
|
|
120
|
-
"node": "^
|
|
120
|
+
"node": "^22.17.0 || ^24.0.0"
|
|
121
121
|
},
|
|
122
122
|
"builders": "./builders.json",
|
|
123
123
|
"schematics": "./collection.json",
|
package/index.d.ts
DELETED
|
@@ -1,795 +0,0 @@
|
|
|
1
|
-
import { Translation, DevtoolsCommonOptions, ContextualizationDevtoolsCommonOptions, OtterMessageContent, MessageDataTypes, ConnectContentMessage, RequestMessagesContentMessage, DevtoolsServiceInterface, SetStateActionPayload, Serializer } from '@o3r/core';
|
|
2
|
-
export { Translation } from '@o3r/core';
|
|
3
|
-
import * as i0 from '@angular/core';
|
|
4
|
-
import { InjectionToken, PipeTransform, OnDestroy, ChangeDetectorRef, ModuleWithProviders, FactoryProvider } from '@angular/core';
|
|
5
|
-
import * as i6 from '@ngx-translate/core';
|
|
6
|
-
import { TranslateCompiler, TranslateService, TranslatePipe, TranslateDirective, TranslateLoader } from '@ngx-translate/core';
|
|
7
|
-
import { Options } from 'intl-messageformat';
|
|
8
|
-
import { Subscription, Observable } from 'rxjs';
|
|
9
|
-
import * as i9 from '@angular/common';
|
|
10
|
-
import { DatePipe, DecimalPipe, CurrencyPipe } from '@angular/common';
|
|
11
|
-
import * as i7 from '@angular/cdk/bidi';
|
|
12
|
-
import { Directionality, Direction } from '@angular/cdk/bidi';
|
|
13
|
-
import * as i8 from '@o3r/dynamic-content';
|
|
14
|
-
import { DynamicContentService } from '@o3r/dynamic-content';
|
|
15
|
-
import * as _ngrx_store from '@ngrx/store';
|
|
16
|
-
import { ActionReducer, Action, ReducerTypes, ActionCreator } from '@ngrx/store';
|
|
17
|
-
import { LoggerService } from '@o3r/logger';
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Decorator to pass localization url
|
|
21
|
-
* @param _url
|
|
22
|
-
*/
|
|
23
|
-
declare function Localization(_url: string): (target: any, key: string) => void;
|
|
24
|
-
|
|
25
|
-
/** Object mapping of a localized string */
|
|
26
|
-
interface JSONLocalization {
|
|
27
|
-
/** The key of the localized string. */
|
|
28
|
-
key: string;
|
|
29
|
-
/** The description of the key used to give some context to the translators. */
|
|
30
|
-
description: string;
|
|
31
|
-
/** True means that the key will be mapped to a dictionary in the CMS. */
|
|
32
|
-
dictionary: boolean;
|
|
33
|
-
/** True means that the value has to be overriden in the CMS. */
|
|
34
|
-
referenceData: boolean;
|
|
35
|
-
/** Tags used to filter/categorize localization strings */
|
|
36
|
-
tags?: string[];
|
|
37
|
-
/** The default value for EN language. It is mandatory if dictionary is set to false. */
|
|
38
|
-
value?: string;
|
|
39
|
-
/** Reference to another key. */
|
|
40
|
-
ref?: string;
|
|
41
|
-
}
|
|
42
|
-
/** Localization Metadata file structure */
|
|
43
|
-
type LocalizationMetadata = JSONLocalization[];
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Describes configuration for LocalizationModule
|
|
47
|
-
*/
|
|
48
|
-
interface LocalizationConfiguration {
|
|
49
|
-
/** List of available languages */
|
|
50
|
-
supportedLocales: string[];
|
|
51
|
-
/** Application display language */
|
|
52
|
-
language?: string;
|
|
53
|
-
/** Url to fetch translation bundles from */
|
|
54
|
-
endPointUrl: string;
|
|
55
|
-
/** Prefix endPoinrUrl with dynamicContentPath provided by DynamicContentPath */
|
|
56
|
-
useDynamicContent: boolean;
|
|
57
|
-
/** List of RTL language codes */
|
|
58
|
-
rtlLanguages: string[];
|
|
59
|
-
/**
|
|
60
|
-
* Fallback language map of resource in case translation in language does not exist.
|
|
61
|
-
* translate to unsupported language will try to map to supportedLocales from below property.
|
|
62
|
-
* @example
|
|
63
|
-
* ```typescript
|
|
64
|
-
* {
|
|
65
|
-
* supportedLocales: ['en-GB', 'en-US', 'fr-FR'],
|
|
66
|
-
* fallbackLocalesMap: {'en-CA': 'en-US', 'de': 'fr-FR'}
|
|
67
|
-
* }
|
|
68
|
-
* // translate to en-CA -> fallback to en-US, translate to de-DE -> fallback to fr-FR,
|
|
69
|
-
* // translate to en-NZ -> fallback to en-GB, translate to en -> fallback to en-GB.
|
|
70
|
-
* ```
|
|
71
|
-
*/
|
|
72
|
-
fallbackLocalesMap?: {
|
|
73
|
-
[supportedLocale: string]: string;
|
|
74
|
-
};
|
|
75
|
-
/** Fallback language of resource in case translation in language does not exist */
|
|
76
|
-
fallbackLanguage: string;
|
|
77
|
-
/** Path relative to published folder where webpack will copy translation bundles */
|
|
78
|
-
bundlesOutputPath: string;
|
|
79
|
-
/** Debug mode switch */
|
|
80
|
-
debugMode: boolean;
|
|
81
|
-
/** Query parameters for fetching the localization resources */
|
|
82
|
-
queryParams?: {
|
|
83
|
-
[key: string]: string;
|
|
84
|
-
};
|
|
85
|
-
/** Fetch options object as per https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch#Parameters */
|
|
86
|
-
fetchOptions?: RequestInit;
|
|
87
|
-
/** Enable the ability to switch the translations on and off at runtime. */
|
|
88
|
-
enableTranslationDeactivation: boolean;
|
|
89
|
-
/**
|
|
90
|
-
* Merge the translations from DynamicContentPath with the local translations
|
|
91
|
-
* Warning: Enable this option will download two localization bundles and can delay the display of the text on application first page
|
|
92
|
-
* @default false
|
|
93
|
-
*/
|
|
94
|
-
mergeWithLocalTranslations: boolean;
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* Default configuration for LocalizationModule
|
|
98
|
-
*/
|
|
99
|
-
declare const DEFAULT_LOCALIZATION_CONFIGURATION: Readonly<LocalizationConfiguration>;
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* Translatable item
|
|
103
|
-
*/
|
|
104
|
-
interface Translatable<T extends Translation> {
|
|
105
|
-
/**
|
|
106
|
-
* translations map
|
|
107
|
-
*/
|
|
108
|
-
translations: T;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* Options for Lazy Message Format compiler
|
|
113
|
-
*/
|
|
114
|
-
interface LazyMessageFormatConfig extends Options {
|
|
115
|
-
/**
|
|
116
|
-
* Enables compiled translation caching
|
|
117
|
-
* @default true
|
|
118
|
-
*/
|
|
119
|
-
enableCache?: boolean;
|
|
120
|
-
/**
|
|
121
|
-
* Enables HTML in translation
|
|
122
|
-
* @default true
|
|
123
|
-
*/
|
|
124
|
-
ignoreTag?: boolean;
|
|
125
|
-
}
|
|
126
|
-
/**
|
|
127
|
-
* Message format configuration default value
|
|
128
|
-
*/
|
|
129
|
-
declare const lazyMessageDefaultConfig: Readonly<LazyMessageFormatConfig>;
|
|
130
|
-
/** Message Format configuration Token */
|
|
131
|
-
declare const MESSAGE_FORMAT_CONFIG: InjectionToken<LazyMessageFormatConfig>;
|
|
132
|
-
/**
|
|
133
|
-
* This compiler expects ICU syntax and compiles the expressions with messageformat.js
|
|
134
|
-
* Compare to ngx-translate-messageformat-compiler package, the compilation of the translation is done only on demand
|
|
135
|
-
*/
|
|
136
|
-
declare class TranslateMessageFormatLazyCompiler extends TranslateCompiler {
|
|
137
|
-
/** Configuration */
|
|
138
|
-
private readonly config;
|
|
139
|
-
/** Cache of compiled translations */
|
|
140
|
-
private cache;
|
|
141
|
-
constructor();
|
|
142
|
-
/**
|
|
143
|
-
* Clear the cache of the compiled translations
|
|
144
|
-
*/
|
|
145
|
-
clearCache(): void;
|
|
146
|
-
/** @inheritDoc */
|
|
147
|
-
compile(value: string, lang: string): (params: any) => string;
|
|
148
|
-
/** @inheritDoc */
|
|
149
|
-
compileTranslations(translations: {
|
|
150
|
-
[x: string]: any;
|
|
151
|
-
}, lang: string): {
|
|
152
|
-
[x: string]: (params: any) => string;
|
|
153
|
-
};
|
|
154
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TranslateMessageFormatLazyCompiler, never>;
|
|
155
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<TranslateMessageFormatLazyCompiler>;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
interface LocalizationDevtoolsServiceOptions extends DevtoolsCommonOptions, ContextualizationDevtoolsCommonOptions {
|
|
159
|
-
metadataFilePath: string;
|
|
160
|
-
}
|
|
161
|
-
/** Localizations message content */
|
|
162
|
-
interface LocalizationsContentMessage extends OtterMessageContent<'localizations'> {
|
|
163
|
-
/** Localizations metadata */
|
|
164
|
-
localizations: LocalizationMetadata;
|
|
165
|
-
}
|
|
166
|
-
/** Languages message content */
|
|
167
|
-
interface LanguagesContentMessage extends OtterMessageContent<'languages'> {
|
|
168
|
-
/** Languages available */
|
|
169
|
-
languages: string[];
|
|
170
|
-
}
|
|
171
|
-
/** Switch languages message content */
|
|
172
|
-
interface SwitchLanguageContentMessage extends OtterMessageContent<'switchLanguage'> {
|
|
173
|
-
/** Language */
|
|
174
|
-
language: string;
|
|
175
|
-
}
|
|
176
|
-
/** Display localization key message content */
|
|
177
|
-
interface DisplayLocalizationKeysContentMessage extends OtterMessageContent<'displayLocalizationKeys'> {
|
|
178
|
-
/** Toggle the display of the localization keys */
|
|
179
|
-
toggle?: boolean;
|
|
180
|
-
}
|
|
181
|
-
/** Update localization message content */
|
|
182
|
-
interface UpdateLocalizationContentMessage extends OtterMessageContent<'updateLocalization'> {
|
|
183
|
-
/** Localization key */
|
|
184
|
-
key: string;
|
|
185
|
-
/** Localization value */
|
|
186
|
-
value: string;
|
|
187
|
-
/** Lang */
|
|
188
|
-
lang?: string;
|
|
189
|
-
}
|
|
190
|
-
/** Reload localization Keys message content */
|
|
191
|
-
interface ReloadLocalizationKeysContentMessage extends OtterMessageContent<'reloadLocalizationKeys'> {
|
|
192
|
-
/** Lang */
|
|
193
|
-
lang?: string;
|
|
194
|
-
}
|
|
195
|
-
interface IsTranslationDeactivationEnabledContentMessage extends OtterMessageContent<'isTranslationDeactivationEnabled'> {
|
|
196
|
-
enabled: boolean;
|
|
197
|
-
}
|
|
198
|
-
interface GetTranslationValuesContentMessage extends OtterMessageContent<'getTranslationValuesContentMessage'> {
|
|
199
|
-
translations: {
|
|
200
|
-
[localizationKey: string]: string;
|
|
201
|
-
};
|
|
202
|
-
}
|
|
203
|
-
type LocalizationMessageContents = LanguagesContentMessage | ReloadLocalizationKeysContentMessage | SwitchLanguageContentMessage | LocalizationsContentMessage | DisplayLocalizationKeysContentMessage | UpdateLocalizationContentMessage | IsTranslationDeactivationEnabledContentMessage | GetTranslationValuesContentMessage;
|
|
204
|
-
/** List of possible DataTypes for Localization messages */
|
|
205
|
-
type LocalizationMessageDataTypes = MessageDataTypes<LocalizationMessageContents>;
|
|
206
|
-
/** List of all messages for Localization purpose */
|
|
207
|
-
type AvailableLocalizationMessageContents = LocalizationMessageContents | ConnectContentMessage | RequestMessagesContentMessage<LocalizationMessageDataTypes>;
|
|
208
|
-
/**
|
|
209
|
-
* Contextualization devtools exposed for localization in CMS integration
|
|
210
|
-
*/
|
|
211
|
-
interface LocalizationContextualizationDevtools {
|
|
212
|
-
/**
|
|
213
|
-
* Is the translation deactivation enabled
|
|
214
|
-
*/
|
|
215
|
-
isTranslationDeactivationEnabled(): boolean | Promise<boolean>;
|
|
216
|
-
/**
|
|
217
|
-
* Show localization keys
|
|
218
|
-
* @param value value enforced by the DevTools extension
|
|
219
|
-
*/
|
|
220
|
-
showLocalizationKeys: (value?: boolean) => void | Promise<void>;
|
|
221
|
-
/**
|
|
222
|
-
* Returns the current language
|
|
223
|
-
*/
|
|
224
|
-
getCurrentLanguage: () => string | Promise<string>;
|
|
225
|
-
/**
|
|
226
|
-
* Switch the current language to the specified value
|
|
227
|
-
* @param language new language to switch to
|
|
228
|
-
*/
|
|
229
|
-
switchLanguage: (language: string) => Promise<{
|
|
230
|
-
previous: string;
|
|
231
|
-
requested: string;
|
|
232
|
-
current: string;
|
|
233
|
-
}>;
|
|
234
|
-
/**
|
|
235
|
-
* Setup a listener on language change
|
|
236
|
-
* @param fn called when the language is changed in the app
|
|
237
|
-
*/
|
|
238
|
-
onLanguageChange: (fn: (language: string) => any) => Subscription;
|
|
239
|
-
/**
|
|
240
|
-
* Updates the specified localization key/values for the current language
|
|
241
|
-
* @param keyValues key/values to update
|
|
242
|
-
* @param language if not provided, the current language value
|
|
243
|
-
*/
|
|
244
|
-
updateLocalizationKeys: (keyValues: {
|
|
245
|
-
[key: string]: string;
|
|
246
|
-
}, language?: string) => void | Promise<void>;
|
|
247
|
-
/**
|
|
248
|
-
* Reload a language from the language file
|
|
249
|
-
* @see https://github.com/ngx-translate/core/blob/master/packages/core/lib/translate.service.ts#L490
|
|
250
|
-
* @param language language to reload
|
|
251
|
-
*/
|
|
252
|
-
reloadLocalizationKeys: (language?: string) => Promise<void>;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
declare class OtterLocalizationDevtools {
|
|
256
|
-
private readonly localizationService;
|
|
257
|
-
private readonly translateCompiler;
|
|
258
|
-
private readonly appRef;
|
|
259
|
-
/**
|
|
260
|
-
* Is the translation deactivation enabled
|
|
261
|
-
*/
|
|
262
|
-
isTranslationDeactivationEnabled(): boolean;
|
|
263
|
-
/**
|
|
264
|
-
* Show localization keys
|
|
265
|
-
* @param value value enforced by the DevTools extension
|
|
266
|
-
*/
|
|
267
|
-
showLocalizationKeys(value?: boolean): void;
|
|
268
|
-
/**
|
|
269
|
-
* Returns the current language
|
|
270
|
-
*/
|
|
271
|
-
getCurrentLanguage(): string;
|
|
272
|
-
/**
|
|
273
|
-
* Setup a listener on language change
|
|
274
|
-
* @param fn called when the language is changed in the app
|
|
275
|
-
*/
|
|
276
|
-
onLanguageChange(fn: (language: string) => any): Subscription;
|
|
277
|
-
/**
|
|
278
|
-
* Switch the current language to the specified value
|
|
279
|
-
* @param language new language to switch to
|
|
280
|
-
*/
|
|
281
|
-
switchLanguage(language: string | undefined): Promise<void>;
|
|
282
|
-
/**
|
|
283
|
-
* Updates the specified localization key/values for the current language.
|
|
284
|
-
*
|
|
285
|
-
* Recommendation: To be used with a small number of keys to update to avoid performance issues.
|
|
286
|
-
* @param keyValues key/values to update
|
|
287
|
-
* @param language if not provided, the current language value
|
|
288
|
-
*/
|
|
289
|
-
updateLocalizationKeys(keyValues: {
|
|
290
|
-
[key: string]: string;
|
|
291
|
-
}, language?: string): void | Promise<void>;
|
|
292
|
-
/**
|
|
293
|
-
* Reload a language from the language file
|
|
294
|
-
* @see https://github.com/ngx-translate/core/blob/master/packages/core/lib/translate.service.ts#L490
|
|
295
|
-
* @param language language to reload
|
|
296
|
-
*/
|
|
297
|
-
reloadLocalizationKeys(language?: string): Promise<void>;
|
|
298
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OtterLocalizationDevtools, never>;
|
|
299
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<OtterLocalizationDevtools>;
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
declare class LocalizationDevtoolsConsoleService implements DevtoolsServiceInterface, LocalizationContextualizationDevtools {
|
|
303
|
-
/** Name of the Window property to access to the devtools */
|
|
304
|
-
static readonly windowModuleName = "localization";
|
|
305
|
-
private readonly localizationDevtools;
|
|
306
|
-
private readonly options;
|
|
307
|
-
constructor();
|
|
308
|
-
/** @inheritDoc */
|
|
309
|
-
activate(): void;
|
|
310
|
-
/**
|
|
311
|
-
* @inheritdoc
|
|
312
|
-
*/
|
|
313
|
-
isTranslationDeactivationEnabled(): boolean | Promise<boolean>;
|
|
314
|
-
/**
|
|
315
|
-
* @inheritdoc
|
|
316
|
-
*/
|
|
317
|
-
showLocalizationKeys(value?: boolean): void | Promise<void>;
|
|
318
|
-
/**
|
|
319
|
-
* @inheritdoc
|
|
320
|
-
*/
|
|
321
|
-
getCurrentLanguage(): string | Promise<string>;
|
|
322
|
-
/**
|
|
323
|
-
* @inheritdoc
|
|
324
|
-
*/
|
|
325
|
-
switchLanguage(language: string): Promise<{
|
|
326
|
-
previous: string;
|
|
327
|
-
requested: string;
|
|
328
|
-
current: string;
|
|
329
|
-
}>;
|
|
330
|
-
/**
|
|
331
|
-
* @inheritdoc
|
|
332
|
-
*/
|
|
333
|
-
onLanguageChange(fn: (language: string) => any): Subscription;
|
|
334
|
-
/**
|
|
335
|
-
* @inheritdoc
|
|
336
|
-
*/
|
|
337
|
-
updateLocalizationKeys(keyValues: {
|
|
338
|
-
[key: string]: string;
|
|
339
|
-
}, language?: string): void | Promise<void>;
|
|
340
|
-
/**
|
|
341
|
-
* @inheritdoc
|
|
342
|
-
*/
|
|
343
|
-
reloadLocalizationKeys(language?: string): Promise<void>;
|
|
344
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LocalizationDevtoolsConsoleService, never>;
|
|
345
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<LocalizationDevtoolsConsoleService>;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
declare class LocalizationDevtoolsMessageService {
|
|
349
|
-
private readonly logger;
|
|
350
|
-
private readonly localizationDevTools;
|
|
351
|
-
private readonly localizationService;
|
|
352
|
-
private readonly options;
|
|
353
|
-
private readonly sendMessage;
|
|
354
|
-
private readonly destroyRef;
|
|
355
|
-
constructor();
|
|
356
|
-
private sendLocalizationsMetadata;
|
|
357
|
-
/**
|
|
358
|
-
* Function to trigger a re-send a requested messages to the Otter Chrome DevTools extension
|
|
359
|
-
* @param only restricted list of messages to re-send
|
|
360
|
-
*/
|
|
361
|
-
private handleReEmitRequest;
|
|
362
|
-
/**
|
|
363
|
-
* Function to handle the incoming messages from Otter Chrome DevTools extension
|
|
364
|
-
* @param message Message coming from the Otter Chrome DevTools extension
|
|
365
|
-
*/
|
|
366
|
-
private handleEvents;
|
|
367
|
-
/**
|
|
368
|
-
* Function to connect the plugin to the Otter Chrome DevTools extension
|
|
369
|
-
*/
|
|
370
|
-
private connectPlugin;
|
|
371
|
-
/** @inheritDoc */
|
|
372
|
-
activate(): void;
|
|
373
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LocalizationDevtoolsMessageService, never>;
|
|
374
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<LocalizationDevtoolsMessageService>;
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
/**
|
|
378
|
-
* Service which is wrapping the configuration logic of TranslateService from ngx-translate
|
|
379
|
-
* Any application willing to use localization just needs to inject LocalizationService
|
|
380
|
-
* in the root component and call its configure() method.
|
|
381
|
-
*/
|
|
382
|
-
declare class LocalizationService {
|
|
383
|
-
private readonly translateService;
|
|
384
|
-
private readonly logger;
|
|
385
|
-
private readonly configuration;
|
|
386
|
-
private readonly store;
|
|
387
|
-
private readonly localeSplitIdentifier;
|
|
388
|
-
/**
|
|
389
|
-
* Internal subject that we use to track changes between keys only and translation mode
|
|
390
|
-
*/
|
|
391
|
-
private readonly _showKeys$;
|
|
392
|
-
/**
|
|
393
|
-
* Map of localization keys to replace a key to another
|
|
394
|
-
*/
|
|
395
|
-
private readonly keyMapping$?;
|
|
396
|
-
/**
|
|
397
|
-
* _showKeys$ exposed as an Observable
|
|
398
|
-
*/
|
|
399
|
-
showKeys$: Observable<boolean>;
|
|
400
|
-
constructor();
|
|
401
|
-
/**
|
|
402
|
-
* This will handle the fallback language hierarchy to find out fallback language.
|
|
403
|
-
* supportedLocales language has highest priority, next priority goes to fallbackLocalesMap and default would be
|
|
404
|
-
* fallbackLanguage.
|
|
405
|
-
* @param language Selected language.
|
|
406
|
-
* @returns selected language if supported, fallback language otherwise.
|
|
407
|
-
*/
|
|
408
|
-
private checkFallbackLocalesMap;
|
|
409
|
-
/**
|
|
410
|
-
* This function checks if fallback language can be provided from fallbackLocalesMap.
|
|
411
|
-
* supportedLocales: ['en-GB', 'en-US', 'fr-FR'], fallbackLocalesMap: {'en-CA': 'en-US', 'de': 'fr-FR'}
|
|
412
|
-
* translate to en-CA -> fallback to en-US, translate to de-DE -> fallback to fr-FR
|
|
413
|
-
* translate to en-NZ -> fallback to en-GB
|
|
414
|
-
* @param language Selected language.
|
|
415
|
-
* @returns Fallback language if available, undefined otherwise.
|
|
416
|
-
*/
|
|
417
|
-
private getFallbackMapLangCode;
|
|
418
|
-
/**
|
|
419
|
-
* This function checks if closest supported language available incase of selected language is not
|
|
420
|
-
* supported language.
|
|
421
|
-
* supportedLocales: ['en-GB', 'en-US', 'fr-FR']
|
|
422
|
-
* translate to en-CA -> fallback to en-GB
|
|
423
|
-
* @param language Selected language.
|
|
424
|
-
* @returns Closest supported language if available, undefined otherwise.
|
|
425
|
-
*/
|
|
426
|
-
private getFirstClosestSupportedLanguageCode;
|
|
427
|
-
/**
|
|
428
|
-
* Returns a stream of translated values of a key which updates whenever the language changes.
|
|
429
|
-
* @param translationKey Key to translate
|
|
430
|
-
* @param interpolateParams Object to use in translation binding
|
|
431
|
-
* @returns A stream of the translated key
|
|
432
|
-
*/
|
|
433
|
-
private getTranslationStream;
|
|
434
|
-
/**
|
|
435
|
-
* Configures TranslateService and registers locales. This method is called from the application level.
|
|
436
|
-
*/
|
|
437
|
-
configure(): Promise<void>;
|
|
438
|
-
/**
|
|
439
|
-
* Is the translation deactivation enabled
|
|
440
|
-
*/
|
|
441
|
-
isTranslationDeactivationEnabled(): boolean;
|
|
442
|
-
/**
|
|
443
|
-
* Wrapper to call the ngx-translate service TranslateService method getLangs().
|
|
444
|
-
*/
|
|
445
|
-
getLanguages(): string[];
|
|
446
|
-
/**
|
|
447
|
-
* Wrapper to call the ngx-translate service TranslateService method use(language).
|
|
448
|
-
* @param language
|
|
449
|
-
*/
|
|
450
|
-
useLanguage(language: string): Observable<any>;
|
|
451
|
-
/**
|
|
452
|
-
* Wrapper to get the ngx-translate service TranslateService currentLang.
|
|
453
|
-
*/
|
|
454
|
-
getCurrentLanguage(): string;
|
|
455
|
-
/**
|
|
456
|
-
* Get the instance of the ngx-translate TranslateService used by LocalizationService.
|
|
457
|
-
*/
|
|
458
|
-
getTranslateService(): TranslateService;
|
|
459
|
-
/**
|
|
460
|
-
* Toggle the ShowKeys mode between active and inactive.
|
|
461
|
-
* @param value if specified, set the ShowKeys mode to value. If not specified, toggle the ShowKeys mode.
|
|
462
|
-
*/
|
|
463
|
-
toggleShowKeys(value?: boolean): void;
|
|
464
|
-
/**
|
|
465
|
-
* Return the current value of debug show/hide translation keys.
|
|
466
|
-
*/
|
|
467
|
-
get showKeys(): boolean;
|
|
468
|
-
/**
|
|
469
|
-
* Get an observable of translation key after global mapping
|
|
470
|
-
* @param requestedKey Original translation key
|
|
471
|
-
*/
|
|
472
|
-
getKey(requestedKey: string): Observable<any>;
|
|
473
|
-
/**
|
|
474
|
-
* Returns a stream of translated values of a key which updates whenever the language changes.
|
|
475
|
-
* @param key Key to translate
|
|
476
|
-
* @param interpolateParams Object to use in translation binding
|
|
477
|
-
* @returns A stream of the translated key
|
|
478
|
-
*/
|
|
479
|
-
translate(key: string, interpolateParams?: object): Observable<any>;
|
|
480
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LocalizationService, never>;
|
|
481
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<LocalizationService>;
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
/**
|
|
485
|
-
* TranslatePipe class adding debug functionality
|
|
486
|
-
*/
|
|
487
|
-
declare class O3rLocalizationTranslatePipe extends TranslatePipe implements PipeTransform, OnDestroy {
|
|
488
|
-
/** Localization service instance */
|
|
489
|
-
protected readonly localizationService: LocalizationService;
|
|
490
|
-
/** Change detector service instance */
|
|
491
|
-
protected readonly changeDetector: ChangeDetectorRef;
|
|
492
|
-
/** Localization config token */
|
|
493
|
-
protected readonly localizationConfig: LocalizationConfiguration;
|
|
494
|
-
/**
|
|
495
|
-
* Internal subscription to the LocalizationService showKeys mode changes
|
|
496
|
-
*/
|
|
497
|
-
protected readonly onShowKeysChange?: Subscription;
|
|
498
|
-
/**
|
|
499
|
-
* Internal subscription to the LocalizationService key mapping
|
|
500
|
-
*/
|
|
501
|
-
protected onKeyChange?: Subscription;
|
|
502
|
-
/**
|
|
503
|
-
* Should we display keys instead of translations
|
|
504
|
-
*/
|
|
505
|
-
protected showKeys: boolean;
|
|
506
|
-
/** last key queried */
|
|
507
|
-
protected lastQueryKey?: string;
|
|
508
|
-
/** last key resolved */
|
|
509
|
-
protected lastResolvedKey?: string;
|
|
510
|
-
constructor();
|
|
511
|
-
/**
|
|
512
|
-
* Calls original transform method and eventually outputs the key if debugMode (in LocalizationConfiguration) is enabled
|
|
513
|
-
* @inheritdoc
|
|
514
|
-
*/
|
|
515
|
-
transform(query: string, ...args: any[]): any;
|
|
516
|
-
ngOnDestroy(): void;
|
|
517
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<O3rLocalizationTranslatePipe, never>;
|
|
518
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<O3rLocalizationTranslatePipe, "o3rTranslate", false>;
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
/**
|
|
522
|
-
* TranslateDirective class adding debug functionality
|
|
523
|
-
*/
|
|
524
|
-
declare class LocalizationTranslateDirective extends TranslateDirective implements OnDestroy {
|
|
525
|
-
private readonly localizationService;
|
|
526
|
-
private readonly localizationConfig;
|
|
527
|
-
/**
|
|
528
|
-
* Internal subscription to the LocalizationService showKeys mode changes
|
|
529
|
-
*/
|
|
530
|
-
private readonly onShowKeysChange?;
|
|
531
|
-
/**
|
|
532
|
-
* Should we display keys instead of translations
|
|
533
|
-
*/
|
|
534
|
-
private showKeys;
|
|
535
|
-
/**
|
|
536
|
-
* Internal subscription to the LocalizationService key mapping
|
|
537
|
-
*/
|
|
538
|
-
private onKeyChange?;
|
|
539
|
-
/** @inheritdoc */
|
|
540
|
-
set translate(key: string);
|
|
541
|
-
constructor();
|
|
542
|
-
/**
|
|
543
|
-
* Overriding parent's setContent to plug debugging feature
|
|
544
|
-
* @param node
|
|
545
|
-
* @param content
|
|
546
|
-
*/
|
|
547
|
-
setContent(node: any, content: string): void;
|
|
548
|
-
ngOnDestroy(): void;
|
|
549
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LocalizationTranslateDirective, never>;
|
|
550
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<LocalizationTranslateDirective, "[translate],[ngx-translate]", never, { "translate": { "alias": "translate"; "required": false; }; }, {}, never, never, false, never>;
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
/**
|
|
554
|
-
* Native angular DatePipe taking the current lang into consideration
|
|
555
|
-
*/
|
|
556
|
-
declare class LocalizedDatePipe extends DatePipe implements OnDestroy, PipeTransform {
|
|
557
|
-
private readonly onLangChange;
|
|
558
|
-
private readonly localizationService;
|
|
559
|
-
private readonly changeDetectorRef;
|
|
560
|
-
constructor();
|
|
561
|
-
/**
|
|
562
|
-
* @inheritdoc
|
|
563
|
-
*/
|
|
564
|
-
transform(value: Date | string | number, format?: string, timezone?: string, locale?: string): string | null;
|
|
565
|
-
transform(value: null | undefined, format?: string, timezone?: string, locale?: string): null;
|
|
566
|
-
transform(value: Date | string | number | null | undefined, format?: string, timezone?: string, locale?: string): string | null;
|
|
567
|
-
ngOnDestroy(): void;
|
|
568
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LocalizedDatePipe, never>;
|
|
569
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<LocalizedDatePipe, "date", false>;
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
/**
|
|
573
|
-
* Native angular DecimalPipe taking the current lang into consideration
|
|
574
|
-
*/
|
|
575
|
-
declare class LocalizedDecimalPipe extends DecimalPipe implements OnDestroy, PipeTransform {
|
|
576
|
-
private readonly onLangChange;
|
|
577
|
-
private readonly localizationService;
|
|
578
|
-
private readonly changeDetectorRef;
|
|
579
|
-
constructor();
|
|
580
|
-
/**
|
|
581
|
-
* @inheritdoc
|
|
582
|
-
*/
|
|
583
|
-
transform(value: number | string, digitsInfo?: string, locale?: string): string | null;
|
|
584
|
-
transform(value: null | undefined, digitsInfo?: string, locale?: string): null;
|
|
585
|
-
ngOnDestroy(): void;
|
|
586
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LocalizedDecimalPipe, never>;
|
|
587
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<LocalizedDecimalPipe, "decimal", false>;
|
|
588
|
-
}
|
|
589
|
-
|
|
590
|
-
/**
|
|
591
|
-
* Native angular CurrencyPipe taking the current lang into consideration
|
|
592
|
-
*/
|
|
593
|
-
declare class LocalizedCurrencyPipe extends CurrencyPipe implements OnDestroy, PipeTransform {
|
|
594
|
-
private readonly onLangChange;
|
|
595
|
-
private readonly localizationService;
|
|
596
|
-
private readonly changeDetectorRef;
|
|
597
|
-
constructor();
|
|
598
|
-
/**
|
|
599
|
-
* @inheritdoc
|
|
600
|
-
*/
|
|
601
|
-
transform(value: number | string, currencyCode?: string, display?: string | boolean, digitsInfo?: string, locale?: string): string | null;
|
|
602
|
-
transform(value: null | undefined, currencyCode?: string, display?: string | boolean, digitsInfo?: string, locale?: string): null;
|
|
603
|
-
transform(value: number | string | null | undefined, currencyCode?: string, display?: string | boolean, digitsInfo?: string, locale?: string): string | null;
|
|
604
|
-
ngOnDestroy(): void;
|
|
605
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LocalizedCurrencyPipe, never>;
|
|
606
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<LocalizedCurrencyPipe, "currency", false>;
|
|
607
|
-
}
|
|
608
|
-
|
|
609
|
-
/**
|
|
610
|
-
* creates LocalizationConfiguration, which is used if the application
|
|
611
|
-
* @param configuration Localization configuration
|
|
612
|
-
*/
|
|
613
|
-
declare function createLocalizationConfiguration(configuration?: Partial<LocalizationConfiguration>): LocalizationConfiguration;
|
|
614
|
-
/**
|
|
615
|
-
* Factory to inject the LOCALE_ID token with the current language into Angular context
|
|
616
|
-
* @param localizationService Localization service
|
|
617
|
-
*/
|
|
618
|
-
declare function localeIdNgBridge(localizationService: LocalizationService): string;
|
|
619
|
-
/** Custom Localization Configuration Token to override default localization configuration */
|
|
620
|
-
declare const CUSTOM_LOCALIZATION_CONFIGURATION_TOKEN: InjectionToken<Partial<LocalizationConfiguration>>;
|
|
621
|
-
declare class LocalizationModule {
|
|
622
|
-
/**
|
|
623
|
-
* forRoot method should be called only once from the application index.ts
|
|
624
|
-
* It will do several things:
|
|
625
|
-
* - provide the configuration for the whole application
|
|
626
|
-
* - register all locales specified in the LocalizationConfiguration
|
|
627
|
-
* - configure TranslateService
|
|
628
|
-
* - inject LOCALE_ID token
|
|
629
|
-
* @param configuration LocalizationConfiguration
|
|
630
|
-
*/
|
|
631
|
-
static forRoot(configuration?: () => Partial<LocalizationConfiguration>): ModuleWithProviders<LocalizationModule>;
|
|
632
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LocalizationModule, never>;
|
|
633
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<LocalizationModule, [typeof O3rLocalizationTranslatePipe, typeof LocalizationTranslateDirective, typeof LocalizedDatePipe, typeof LocalizedDecimalPipe, typeof LocalizedCurrencyPipe], [typeof i6.TranslateModule, typeof i7.BidiModule, typeof i8.DynamicContentModule, typeof i9.CommonModule], [typeof i6.TranslateModule, typeof O3rLocalizationTranslatePipe, typeof LocalizationTranslateDirective, typeof LocalizedDatePipe, typeof LocalizedDecimalPipe, typeof LocalizedCurrencyPipe]>;
|
|
634
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<LocalizationModule>;
|
|
635
|
-
}
|
|
636
|
-
|
|
637
|
-
declare class LocalizationDevtoolsModule {
|
|
638
|
-
/**
|
|
639
|
-
* Initialize Otter Devtools
|
|
640
|
-
* @param options
|
|
641
|
-
*/
|
|
642
|
-
static instrument(options: Partial<LocalizationDevtoolsServiceOptions>): ModuleWithProviders<LocalizationDevtoolsModule>;
|
|
643
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LocalizationDevtoolsModule, never>;
|
|
644
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<LocalizationDevtoolsModule, never, [typeof LocalizationModule], never>;
|
|
645
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<LocalizationDevtoolsModule>;
|
|
646
|
-
}
|
|
647
|
-
|
|
648
|
-
declare const OTTER_LOCALIZATION_DEVTOOLS_DEFAULT_OPTIONS: Readonly<LocalizationDevtoolsServiceOptions>;
|
|
649
|
-
declare const OTTER_LOCALIZATION_DEVTOOLS_OPTIONS: InjectionToken<LocalizationDevtoolsServiceOptions>;
|
|
650
|
-
|
|
651
|
-
/**
|
|
652
|
-
* LocalizationOverride store state
|
|
653
|
-
*/
|
|
654
|
-
interface LocalizationOverrideState {
|
|
655
|
-
/** Mapping of initial localization keys to the one they are replaced with */
|
|
656
|
-
localizationOverrides: Record<string, string>;
|
|
657
|
-
}
|
|
658
|
-
/**
|
|
659
|
-
* Name of the LocalizationOverride Store
|
|
660
|
-
*/
|
|
661
|
-
declare const LOCALIZATION_OVERRIDE_STORE_NAME = "localizationOverride";
|
|
662
|
-
/**
|
|
663
|
-
* LocalizationOverride Store Interface
|
|
664
|
-
*/
|
|
665
|
-
interface LocalizationOverrideStore {
|
|
666
|
-
/** LocalizationOverride state */
|
|
667
|
-
[LOCALIZATION_OVERRIDE_STORE_NAME]: LocalizationOverrideState;
|
|
668
|
-
}
|
|
669
|
-
|
|
670
|
-
/**
|
|
671
|
-
* Clear all overrides and fill the store with the payload
|
|
672
|
-
*/
|
|
673
|
-
declare const setLocalizationOverride: _ngrx_store.ActionCreator<"[LocalizationOverride] set", (props: SetStateActionPayload<LocalizationOverrideState>) => SetStateActionPayload<LocalizationOverrideState> & _ngrx_store.Action<"[LocalizationOverride] set">>;
|
|
674
|
-
|
|
675
|
-
/** Token of the LocalizationOverride reducer */
|
|
676
|
-
declare const LOCALIZATION_OVERRIDE_REDUCER_TOKEN: InjectionToken<ActionReducer<LocalizationOverrideState, Action<string>>>;
|
|
677
|
-
/** Provide default reducer for LocalizationOverride store */
|
|
678
|
-
declare function getDefaultLocalizationOverrideReducer(): ActionReducer<LocalizationOverrideState, Action<string>>;
|
|
679
|
-
declare class LocalizationOverrideStoreModule {
|
|
680
|
-
static forRoot<T extends LocalizationOverrideState>(reducerFactory: () => ActionReducer<T, Action>): ModuleWithProviders<LocalizationOverrideStoreModule>;
|
|
681
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LocalizationOverrideStoreModule, never>;
|
|
682
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<LocalizationOverrideStoreModule, never, [typeof _ngrx_store.StoreFeatureModule], never>;
|
|
683
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<LocalizationOverrideStoreModule>;
|
|
684
|
-
}
|
|
685
|
-
|
|
686
|
-
/**
|
|
687
|
-
* LocalizationOverride Store initial value
|
|
688
|
-
*/
|
|
689
|
-
declare const localizationOverrideInitialState: LocalizationOverrideState;
|
|
690
|
-
/**
|
|
691
|
-
* List of basic actions for LocalizationOverride Store
|
|
692
|
-
*/
|
|
693
|
-
declare const localizationOverrideReducerFeatures: ReducerTypes<LocalizationOverrideState, ActionCreator[]>[];
|
|
694
|
-
/**
|
|
695
|
-
* LocalizationOverride Store reducer
|
|
696
|
-
*/
|
|
697
|
-
declare const localizationOverrideReducer: _ngrx_store.ActionReducer<LocalizationOverrideState, _ngrx_store.Action<string>>;
|
|
698
|
-
|
|
699
|
-
/** Select LocalizationOverride State */
|
|
700
|
-
declare const selectLocalizationOverrideState: _ngrx_store.MemoizedSelector<object, LocalizationOverrideState, _ngrx_store.DefaultProjectorFn<LocalizationOverrideState>>;
|
|
701
|
-
/** Select all localization override map */
|
|
702
|
-
declare const selectLocalizationOverride: _ngrx_store.MemoizedSelector<object, Record<string, string>, (s1: LocalizationOverrideState) => Record<string, string>>;
|
|
703
|
-
|
|
704
|
-
declare const localizationOverrideStorageDeserializer: (rawObject: any) => any;
|
|
705
|
-
declare const localizationOverrideStorageSync: Serializer<LocalizationOverrideState>;
|
|
706
|
-
|
|
707
|
-
/**
|
|
708
|
-
* This class is responsible for loading translation bundles from remote or local endpoints depending on the LocalizationConfiguration.
|
|
709
|
-
* Fallback mechanism ensures that if a bundle in some language cannot be fetched remotely
|
|
710
|
-
* we try to fetch the same language bundle locally (bundles stored inside the application)
|
|
711
|
-
* and finally load the fallback language bundle (if all previous fetches failed)
|
|
712
|
-
*/
|
|
713
|
-
declare class TranslationsLoader implements TranslateLoader {
|
|
714
|
-
private readonly localizationConfiguration;
|
|
715
|
-
private readonly logger?;
|
|
716
|
-
private readonly dynamicContentService?;
|
|
717
|
-
/**
|
|
718
|
-
* Download a language bundle file
|
|
719
|
-
* @param url Url to the bundle file
|
|
720
|
-
*/
|
|
721
|
-
private downloadLanguageBundle$;
|
|
722
|
-
/**
|
|
723
|
-
* @inheritdoc
|
|
724
|
-
*/
|
|
725
|
-
getTranslation(lang: string): Observable<any>;
|
|
726
|
-
/**
|
|
727
|
-
*
|
|
728
|
-
*Fetches localization bundles from published folder (internal to application)
|
|
729
|
-
*
|
|
730
|
-
*1. try to load lang from local
|
|
731
|
-
*2. if 1 fails try to load fallback lang but only if it's different from lang in 1
|
|
732
|
-
* @param lang - language of the bundle
|
|
733
|
-
* @param fallbackLanguage - fallback language in case bundle in language not found
|
|
734
|
-
*/
|
|
735
|
-
getTranslationFromLocal(lang: string, fallbackLanguage: string): Observable<any>;
|
|
736
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TranslationsLoader, never>;
|
|
737
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<TranslationsLoader>;
|
|
738
|
-
}
|
|
739
|
-
|
|
740
|
-
/**
|
|
741
|
-
* Creates a loader of translations bundles based on the configuration
|
|
742
|
-
* (endPointUrl and language determine which bundle we load and where do we fetch it from)
|
|
743
|
-
* @param localizationConfiguration
|
|
744
|
-
* @param logger service to handle the log of warning and errors
|
|
745
|
-
* @param dynamicContentService (optional)
|
|
746
|
-
*/
|
|
747
|
-
declare function createTranslateLoader(localizationConfiguration: LocalizationConfiguration, logger?: LoggerService, dynamicContentService?: DynamicContentService): TranslationsLoader;
|
|
748
|
-
/**
|
|
749
|
-
* TranslateLoader provider, using framework's TranslationsLoader class
|
|
750
|
-
*/
|
|
751
|
-
declare const translateLoaderProvider: Readonly<FactoryProvider>;
|
|
752
|
-
|
|
753
|
-
/** Localization Configuration Token */
|
|
754
|
-
declare const LOCALIZATION_CONFIGURATION_TOKEN: InjectionToken<LocalizationConfiguration>;
|
|
755
|
-
|
|
756
|
-
/**
|
|
757
|
-
* Service for handling the text direction based on the LocalizationConfiguration
|
|
758
|
-
*/
|
|
759
|
-
declare class TextDirectionService {
|
|
760
|
-
private readonly translateService;
|
|
761
|
-
private readonly configuration;
|
|
762
|
-
private readonly rendererFactory;
|
|
763
|
-
private readonly directionality;
|
|
764
|
-
private subscription?;
|
|
765
|
-
private readonly renderer;
|
|
766
|
-
constructor();
|
|
767
|
-
/**
|
|
768
|
-
* Updates the dir attribute on body HTML tag.
|
|
769
|
-
* @returns a subscription that updates the dir attribute
|
|
770
|
-
*/
|
|
771
|
-
onLangChangeSubscription(): Subscription;
|
|
772
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TextDirectionService, never>;
|
|
773
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<TextDirectionService>;
|
|
774
|
-
}
|
|
775
|
-
|
|
776
|
-
/**
|
|
777
|
-
* @deprecated The value of Directionality is no longer readonly and can be updated, this class will be removed in v16
|
|
778
|
-
*/
|
|
779
|
-
declare class TextDirectionality extends Directionality implements OnDestroy {
|
|
780
|
-
get value(): Direction;
|
|
781
|
-
set value(value: Direction);
|
|
782
|
-
/**
|
|
783
|
-
* The current 'ltr' or 'rtl' value.
|
|
784
|
-
* @override
|
|
785
|
-
*/
|
|
786
|
-
private _value;
|
|
787
|
-
constructor();
|
|
788
|
-
ngOnDestroy(): void;
|
|
789
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TextDirectionality, never>;
|
|
790
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<TextDirectionality>;
|
|
791
|
-
}
|
|
792
|
-
|
|
793
|
-
export { CUSTOM_LOCALIZATION_CONFIGURATION_TOKEN, DEFAULT_LOCALIZATION_CONFIGURATION, LOCALIZATION_CONFIGURATION_TOKEN, LOCALIZATION_OVERRIDE_REDUCER_TOKEN, LOCALIZATION_OVERRIDE_STORE_NAME, Localization, LocalizationDevtoolsConsoleService, LocalizationDevtoolsMessageService, LocalizationDevtoolsModule, LocalizationModule, LocalizationOverrideStoreModule, LocalizationService, LocalizationTranslateDirective, LocalizedCurrencyPipe, LocalizedDatePipe, LocalizedDecimalPipe, MESSAGE_FORMAT_CONFIG, O3rLocalizationTranslatePipe, OTTER_LOCALIZATION_DEVTOOLS_DEFAULT_OPTIONS, OTTER_LOCALIZATION_DEVTOOLS_OPTIONS, OtterLocalizationDevtools, TextDirectionService, TextDirectionality, TranslateMessageFormatLazyCompiler, TranslationsLoader, createLocalizationConfiguration, createTranslateLoader, getDefaultLocalizationOverrideReducer, lazyMessageDefaultConfig, localeIdNgBridge, localizationOverrideInitialState, localizationOverrideReducer, localizationOverrideReducerFeatures, localizationOverrideStorageDeserializer, localizationOverrideStorageSync, selectLocalizationOverride, selectLocalizationOverrideState, setLocalizationOverride, translateLoaderProvider };
|
|
794
|
-
export type { AvailableLocalizationMessageContents, DisplayLocalizationKeysContentMessage, GetTranslationValuesContentMessage, IsTranslationDeactivationEnabledContentMessage, JSONLocalization, LanguagesContentMessage, LazyMessageFormatConfig, LocalizationConfiguration, LocalizationContextualizationDevtools, LocalizationDevtoolsServiceOptions, LocalizationMessageDataTypes, LocalizationMetadata, LocalizationOverrideState, LocalizationOverrideStore, LocalizationsContentMessage, ReloadLocalizationKeysContentMessage, SwitchLanguageContentMessage, Translatable, UpdateLocalizationContentMessage };
|
|
795
|
-
//# sourceMappingURL=index.d.ts.map
|
package/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sources":["../src/annotations/localization.ts","../src/core/json-localization-interface.ts","../src/core/localization-configuration.ts","../src/core/translatable.ts","../src/core/translate-message-format-lazy-compiler.ts","../src/devkit/localization-devkit-interface.ts","../src/devkit/localization-devtools.ts","../src/devkit/localization-devtools-console-service.ts","../src/devkit/localization-devtools-message-service.ts","../src/tools/localization-service.ts","../src/tools/localization-translate-pipe.ts","../src/tools/localization-translate-directive.ts","../src/tools/localized-date-pipe.ts","../src/tools/localized-decimal-pipe.ts","../src/tools/localized-currency-pipe.ts","../src/tools/localization-module.ts","../src/devkit/localization-devtools-module.ts","../src/devkit/localization-devtools-token.ts","../src/stores/localization-override/localization-override.state.ts","../src/stores/localization-override/localization-override.actions.ts","../src/stores/localization-override/localization-override-module.ts","../src/stores/localization-override/localization-override.reducer.ts","../src/stores/localization-override/localization-override.selectors.ts","../src/stores/localization-override/localization-override.sync.ts","../src/tools/translations-loader.ts","../src/tools/localization-provider.ts","../src/tools/localization-token.ts","../src/tools/text-direction-service.ts","../src/tools/text-directionality.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":"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"}
|
package/rules-engine/index.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { RulesEngineAction, RulesEngineActionHandler } from '@o3r/core';
|
|
2
|
-
import * as i0 from '@angular/core';
|
|
3
|
-
import * as i1 from '@o3r/localization';
|
|
4
|
-
|
|
5
|
-
/** ActionUpdateLocalisationBlock */
|
|
6
|
-
declare const RULES_ENGINE_LOCALISATION_UPDATE_ACTION_TYPE = "UPDATE_LOCALISATION";
|
|
7
|
-
/**
|
|
8
|
-
* Content of action that updates localization
|
|
9
|
-
*/
|
|
10
|
-
interface ActionUpdateLocalisationBlock extends RulesEngineAction {
|
|
11
|
-
actionType: typeof RULES_ENGINE_LOCALISATION_UPDATE_ACTION_TYPE;
|
|
12
|
-
key: string;
|
|
13
|
-
value: string;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Service to handle async Localization actions
|
|
18
|
-
*/
|
|
19
|
-
declare class LocalizationRulesEngineActionHandler implements RulesEngineActionHandler<ActionUpdateLocalisationBlock> {
|
|
20
|
-
private readonly store;
|
|
21
|
-
/** @inheritdoc */
|
|
22
|
-
readonly supportingActions: readonly ["UPDATE_LOCALISATION"];
|
|
23
|
-
/** @inheritdoc */
|
|
24
|
-
executeActions(actions: ActionUpdateLocalisationBlock[]): void | Promise<void>;
|
|
25
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LocalizationRulesEngineActionHandler, never>;
|
|
26
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<LocalizationRulesEngineActionHandler>;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
declare class LocalizationRulesEngineActionModule {
|
|
30
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LocalizationRulesEngineActionModule, never>;
|
|
31
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<LocalizationRulesEngineActionModule, never, [typeof i1.LocalizationOverrideStoreModule], never>;
|
|
32
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<LocalizationRulesEngineActionModule>;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export { LocalizationRulesEngineActionHandler, LocalizationRulesEngineActionModule, RULES_ENGINE_LOCALISATION_UPDATE_ACTION_TYPE };
|
|
36
|
-
export type { ActionUpdateLocalisationBlock };
|
|
37
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sources":["../../src/rules-engine/localization-interfaces.ts","../../src/rules-engine/localization-rules-engine-action-handler.ts","../../src/rules-engine/localization-rules-engine-module.ts"],"sourcesContent":[null,null,null],"names":[],"mappings":";;;;AAIA;AACA,cAAA,4CAAA;AAEA;;AAEG;AACG,UAAA,6BAAA,SAAA,iBAAA;;;;AAIL;;ACKD;;AAEG;AACH,cAAA,oCAAA,YAAA,wBAAA,CAAA,6BAAA;AAEE;;AAGA;;;;;AAWD;;AC5BD,cAAA,mCAAA;;;;AAQmD;;;;"}
|