aspnetboilerplate icon indicating copy to clipboard operation
aspnetboilerplate copied to clipboard

How to use currency by localization in angular template?

Open yopichy opened this issue 2 years ago • 2 comments

I have a problem when using angular templates and using localization, when changing the currency by localization that previously used a comma (1,000,000) as separator to change to a dot (1.000.000) there was a problem when saving. for example in the UI input using a comma it was considered as a dot by the API. Has anyone had a similar experience? Please help those who are experienced with this problem, thank you

yopichy avatar Jun 28 '22 05:06 yopichy

@yopichy for me i do something like this

public const int DecimalPlaces = 3; public const string DecimalFormat = "0.000"; public const int MoneyDecimalPlaces = 3; public const string MoneyDecimalFormat = "0.000"; public const string DateFormat = "yyyy-MM-dd"; public const string TimeFormat = "HH:mm:ss"; public const string DateTimeFormat = "yyyy-MM-dd HH:mm:ss";

then view or code ReceptionDate.ToString(Consts.DateFormat)

also do something like this way in js

If possible ABP can add feature like to define these in setting to override the culture it will be great

sajasbana avatar Jun 29 '22 11:06 sajasbana

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 21 '22 01:09 stale[bot]