You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which Transloco package(s) will this feature affect?
Locale
Is your feature request related to a problem? Please describe
translocoCurrency, translocoDate, translocoDecimal and translocoPercent pipes are not optimized. They use an impure pipe, so each call will reformat the same value without optimization.
Describe the solution you'd like
Like transloco pipe, the value must be formatted only if the value or params changes (équivalent to key + params in transloco pipe).
Describe alternatives you've considered
Create my own pipe using the `transloco` pipe model.
Is there an existing issue for this?
Which Transloco package(s) will this feature affect?
Locale
Is your feature request related to a problem? Please describe
translocoCurrency
,translocoDate
,translocoDecimal
andtranslocoPercent
pipes are not optimized. They use an impure pipe, so each call will reformat the same value without optimization.Describe the solution you'd like
Like
transloco
pipe, the value must be formatted only if the value or params changes (équivalent tokey + params
intransloco
pipe).Describe alternatives you've considered
Additional context
https://github.com/ngneat/transloco/blob/master/libs/transloco/src/lib/transloco.pipe.ts
VS
https://github.com/ngneat/transloco/blob/master/libs/transloco-locale/src/lib/pipes/transloco-currency.pipe.ts
https://github.com/ngneat/transloco/blob/master/libs/transloco-locale/src/lib/pipes/transloco-date.pipe.ts
https://github.com/ngneat/transloco/blob/master/libs/transloco-locale/src/lib/pipes/transloco-decimal.pipe.ts
https://github.com/ngneat/transloco/blob/master/libs/transloco-locale/src/lib/pipes/transloco-percent.pipe.ts
I would like to make a pull request for this feature
Yes
The text was updated successfully, but these errors were encountered: