Counter: Internationalization Support
See original GitHub issueIs your feature request related to a problem? Please describe. In the Counter component today, I can’t dynamically display the user’s decimal and currency formats, using their location, I don’t have internationalization support, just fixed CurrencyFormat parameters, Decimal places and thousands.
Describe the solution you’d like
Using the same logic as convertNumber, allow the component to assign a locale parameter and it will dynamically assume the currency format and decimal places based on the parameter.
Something like <pe:counter locale="BackingBeanLocaleHere()" </pe:counter>
Additional context Today I use the counter to display financial results in my system, but I need internationalization support, if I will not have to find another long-term solution, since the United States user does not work with the same currency format as the Brazilian user.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)

Top Related StackOverflow Question
10.0.0.RC2 is now in Maven Central and has this new feature if you want to try it out
Agreed I just added so you can use
localeand it will auto detect your locale if you leave locale blank and use your current locale’s default like other PF components do! Thanks for the suggestion!