@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.
@@ -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
- var suffix = params && params.length ? params[0] : '';
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
  }());