monkey-front-core 0.0.244 → 0.0.245
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/esm2020/lib/core/pipes/monkeyecx-format-currency.mjs +3 -3
- package/fesm2015/monkey-front-core.mjs +2 -2
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +2 -2
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/core/pipes/monkeyecx-format-currency.d.ts +1 -1
- package/monkey-front-core-0.0.245.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.244.tgz +0 -0
|
@@ -463,12 +463,12 @@ class MonkeyEcxFormatCurrencyPipe {
|
|
|
463
463
|
this.currencyPipe = currencyPipe;
|
|
464
464
|
// not to do
|
|
465
465
|
}
|
|
466
|
-
transform(value) {
|
|
466
|
+
transform(value, symbol = 'symbol') {
|
|
467
467
|
const cookieStorageService = this.injector.get(MonkeyEcxCookieStorageService);
|
|
468
468
|
const cookie = cookieStorageService.getCookie('monkey-app-locale');
|
|
469
469
|
const i18n = JSON.parse(atob(cookie));
|
|
470
470
|
const { currency } = i18n;
|
|
471
|
-
return this.currencyPipe.transform(value, currency,
|
|
471
|
+
return this.currencyPipe.transform(value, currency, symbol);
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
474
|
MonkeyEcxFormatCurrencyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatCurrencyPipe, deps: [{ token: i0.Injector }, { token: i2.CurrencyPipe }], target: i0.ɵɵFactoryTarget.Pipe });
|