Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom formatting for languages and support for cents #175

Open
Bodyash opened this issue Jan 10, 2025 · 0 comments
Open

Add custom formatting for languages and support for cents #175

Bodyash opened this issue Jan 10, 2025 · 0 comments

Comments

@Bodyash
Copy link

Bodyash commented Jan 10, 2025

Currently default BigDecimalToBankingMoneyConverter has FORMAT = "%s %s %02d/100" and it's used by many languages.
Also we have HindiBigDecimalToBankingMoneyConverter that is using a little different format - "%s %s%s %s".

What could be cool - is ability to use custom formatting without implementing custom BigDecimalToStringConverter and also per-language cent symbol support. Now by default it's printing "one hundred EUR 42/100", and it could be nice to be able to print something like "one hundred EUR forty two cents". For now we can only customize currency - EUR, but not cents.
Also good example example: zł. and gr.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant