Custom Currency Symbol #44
Replies: 6 comments 1 reply
-
Hi 👋, not at the moment. Can I ask what you're replacing it with? Converting this to a discussion for voting |
Beta Was this translation helpful? Give feedback.
-
I'm not sure about a custom currency, but I also have a use case where instead of displaying 0 I'd like to display a |
Beta Was this translation helpful? Give feedback.
-
A custom currency might be useful if you wanted to display crypto currencies, like BTC and ETH. |
Beta Was this translation helpful? Give feedback.
-
I'm planning some type of overrides feature to better handle this 👍. For reference, Intl.NumberFormat already handles currencies like BTC and ETH (albeit not their symbols): Sandbox |
Beta Was this translation helpful? Give feedback.
-
It's not quite the original request but I just pushed |
Beta Was this translation helpful? Give feedback.
-
Prefix and suffix are great solution. For those needing more flexbility you could write a small polyfill for I was doing this prior to latest release but have switched over to |
Beta Was this translation helpful? Give feedback.
-
Is there a way to provide a custom currency symbol? Im currently using
Intl.NumberFormat
and then.replace('$', currencySymbol)
, however not sure how to do that with your component.Beta Was this translation helpful? Give feedback.
All reactions