@sumaris-net/ngx-components 1.6.11 → 1.6.12
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 +2 -8
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/esm2015/src/app/shared/pipes/translate-context.pipe.js +3 -5
- package/fesm2015/sumaris-net.ngx-components.js +2 -4
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/shared/pipes/translate-context.pipe.d.ts +1 -1
- package/sumaris-net.ngx-components.metadata.json +1 -1
|
@@ -3052,16 +3052,10 @@
|
|
|
3052
3052
|
function TranslateContextPipe(translate) {
|
|
3053
3053
|
this.translate = translate;
|
|
3054
3054
|
}
|
|
3055
|
-
TranslateContextPipe.prototype.transform = function (query) {
|
|
3056
|
-
var params = [];
|
|
3057
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
3058
|
-
params[_i - 1] = arguments[_i];
|
|
3059
|
-
}
|
|
3055
|
+
TranslateContextPipe.prototype.transform = function (query, context, interpolateParams) {
|
|
3060
3056
|
if (!query || !query.length)
|
|
3061
3057
|
return query;
|
|
3062
|
-
|
|
3063
|
-
params = suffix && params.slice(1);
|
|
3064
|
-
return this.translate.instant(query, suffix, params);
|
|
3058
|
+
return this.translate.instant(query, context, interpolateParams);
|
|
3065
3059
|
};
|
|
3066
3060
|
return TranslateContextPipe;
|
|
3067
3061
|
}());
|