@sumaris-net/ngx-components 0.28.3 → 0.28.4
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/bundles/sumaris-net.ngx-components.umd.js +47 -9
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +2 -2
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/esm2015/src/app/shared/services/translate-context.service.js +38 -13
- package/fesm2015/sumaris-net.ngx-components.js +36 -10
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/shared/services/translate-context.service.d.ts +10 -0
- package/sumaris-net.ngx-components.metadata.json +1 -1
package/package.json
CHANGED
|
@@ -5,6 +5,15 @@ export declare class TranslateContextService {
|
|
|
5
5
|
constructor(translate: TranslateService);
|
|
6
6
|
get(key: string, context?: string, interpolateParams?: Object): Observable<any>;
|
|
7
7
|
instant(key: string, context?: string, interpolateParams?: Object): any;
|
|
8
|
+
/**
|
|
9
|
+
* Compute contextual i18n keys, using the context as suffix.<br>
|
|
10
|
+
* Suffix can be simple name (like 'aaa' - will return ['<key>.aaa']) or complexe (like 'aaa.bbb' - will return ['<key>.aaa.bbb', '<key>.aaa']
|
|
11
|
+
*
|
|
12
|
+
* @param key
|
|
13
|
+
* @param context
|
|
14
|
+
* @private
|
|
15
|
+
*/
|
|
16
|
+
contextualKeys(key: string, context: string): string[];
|
|
8
17
|
/**
|
|
9
18
|
* Compute a contextual i18n key, using the context as suffix
|
|
10
19
|
*
|
|
@@ -13,4 +22,5 @@ export declare class TranslateContextService {
|
|
|
13
22
|
* @private
|
|
14
23
|
*/
|
|
15
24
|
contextualKey(key: string, context: string): string;
|
|
25
|
+
private findFirstValid;
|
|
16
26
|
}
|