@jsverse/transloco 7.2.1 → 7.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/esm2022/index.mjs +3 -3
- package/esm2022/lib/transloco-missing-handler.mjs +5 -5
- package/esm2022/lib/transloco.directive.mjs +6 -11
- package/esm2022/lib/transloco.providers.mjs +3 -3
- package/esm2022/lib/transloco.service.mjs +7 -10
- package/esm2022/lib/transloco.transpiler.mjs +13 -10
- package/fesm2022/jsverse-transloco.mjs +27 -33
- package/fesm2022/jsverse-transloco.mjs.map +1 -1
- package/index.d.ts +2 -2
- package/lib/transloco-missing-handler.d.ts +3 -3
- package/lib/transloco.directive.d.ts +1 -2
- package/lib/transloco.service.d.ts +0 -1
- package/lib/transloco.transpiler.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { EmbeddedViewRef, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { Subscription } from 'rxjs';
|
|
3
2
|
import { Content } from './template-handler';
|
|
4
3
|
import { HashMap } from './types';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
@@ -9,6 +8,7 @@ interface ViewContext {
|
|
|
9
8
|
currentLang: string;
|
|
10
9
|
}
|
|
11
10
|
export declare class TranslocoDirective implements OnInit, OnDestroy, OnChanges {
|
|
11
|
+
private destroyRef;
|
|
12
12
|
private service;
|
|
13
13
|
private tpl;
|
|
14
14
|
private providerLang;
|
|
@@ -18,7 +18,6 @@ export declare class TranslocoDirective implements OnInit, OnDestroy, OnChanges
|
|
|
18
18
|
private host;
|
|
19
19
|
private vcr;
|
|
20
20
|
private renderer;
|
|
21
|
-
subscription: Subscription | null;
|
|
22
21
|
view: EmbeddedViewRef<ViewContext> | undefined;
|
|
23
22
|
private memo;
|
|
24
23
|
key: string | undefined;
|
|
@@ -41,7 +41,7 @@ export declare class DefaultTranspiler implements TranslocoTranspiler {
|
|
|
41
41
|
*
|
|
42
42
|
*
|
|
43
43
|
*/
|
|
44
|
-
protected handleObject({ value, params, translation, key }: TranspileParams<Record<any, any>>): Record<any, any>;
|
|
44
|
+
protected handleObject({ value, params, translation, key, }: TranspileParams<Record<any, any>>): Record<any, any>;
|
|
45
45
|
protected handleArray({ value, ...rest }: TranspileParams<unknown[]>): any[];
|
|
46
46
|
static ɵfac: i0.ɵɵFactoryDeclaration<DefaultTranspiler, never>;
|
|
47
47
|
static ɵprov: i0.ɵɵInjectableDeclaration<DefaultTranspiler>;
|