How to set a space between the currency sign and the number #3866
Answered
by
longlho
hazem-alabiad
asked this question in
Q&A
-
Here is my code StackBlitz link How can I add a space between the currency and the number? It seems that they are stuck next to each other :) |
Beta Was this translation helpful? Give feedback.
Answered by
longlho
Oct 10, 2022
Replies: 2 comments 1 reply
-
There's no way. It's dictated by cldr data from unicode. It's likely that your shouldn't add a space |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
hazem-alabiad
-
Seems that there is possible workaround <FormattedNumberParts
value="154.589416514"
currency="TRY"
currencyDisplay="narrowSymbol"
style="currency"
>
{(parts) => {
return (
<React.Fragment>
<b>{parts[0].value}</b>{' '}
{parts?.slice(1).map((part) => part.value)}
</React.Fragment>
);
}}
</FormattedNumberParts> |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There's no way. It's dictated by cldr data from unicode. It's likely that your shouldn't add a space