question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Counter: Internationalization Support

See original GitHub issue

Is 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:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
mellowarecommented, Mar 1, 2021

10.0.0.RC2 is now in Maven Central and has this new feature if you want to try it out

0reactions
mellowarecommented, Mar 1, 2021

Agreed I just added so you can use locale and 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!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ready-made Counter Styles updated - W3C
To coincide with this release, the Internationalization WG updated the WG Note Ready-made Counter Styles. This contains templates for counter ...
Read more >
Language internationalization support
The ServiceNow platform supports multiple languages. Language support is available when at least one language plugin has been activated, as ...
Read more >
Localization, Globalization, Internationalization: What's the ...
Planning for these processes before the project begins will help you design products that satisfy users of all regions, cultures and languages.
Read more >
Dual counter share trading to boost renminbi's internationalization ...
"Investors have the option to trade in Hong Kong dollar and renminbi at their own wish, depending on their Hong Kong dollar and...
Read more >
Internationalization Support in Ember.js - Evil Trout's Blog
On the server side, Discourse uses Rails' built in i18n support. ... en: { hello: 'hello', cookieCount: { one: 'You have {{count}} cookie....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found