@sumaris-net/ngx-components 0.27.13 → 0.27.14
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 -2
- 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/services/translate-context.service.js +3 -3
- package/fesm2015/sumaris-net.ngx-components.js +2 -2
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
|
@@ -2805,7 +2805,7 @@
|
|
|
2805
2805
|
// Compute a contextual i18n key, using the context as suffix
|
|
2806
2806
|
var contextKey = this.contextualKey(key, context);
|
|
2807
2807
|
// Return the contextual translation, or default of not exists
|
|
2808
|
-
return this.translate.get(contextKey)
|
|
2808
|
+
return this.translate.get(contextKey, interpolateParams)
|
|
2809
2809
|
.pipe(operators.mergeMap(function (translation) { return (translation !== contextKey) ? rxjs.of(translation) : _this.translate.get(key); }));
|
|
2810
2810
|
};
|
|
2811
2811
|
TranslateContextService.prototype.instant = function (key, context, interpolateParams) {
|
|
@@ -2815,7 +2815,7 @@
|
|
|
2815
2815
|
// Compute a contextual i18n key, using the context as suffix
|
|
2816
2816
|
var contextualKey = this.contextualKey(key, context);
|
|
2817
2817
|
// Return the contextual translation, or default of not exists
|
|
2818
|
-
var translation = this.translate.instant(contextualKey);
|
|
2818
|
+
var translation = this.translate.instant(contextualKey, interpolateParams);
|
|
2819
2819
|
return (translation !== contextualKey) ? translation : this.translate.instant(key);
|
|
2820
2820
|
};
|
|
2821
2821
|
/**
|