You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I have a literal non-breaking space character (the actual character itself, like the one you can copy from here) inside of a defaultMessage of a <FormattedMessage>, it gets converted to a normal breaking space character when running the formatjs extract cli command. The use case for a non breaking space character would be examples like {amount} {currency} --> 12,34 € where you don't want the currency symbol wrapping to the next line all by itself. So is there a way to use non-breaking spaces?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When I have a literal non-breaking space character (the actual character itself, like the one you can copy from here) inside of a
defaultMessage
of a<FormattedMessage>
, it gets converted to a normal breaking space character when running theformatjs extract
cli command. The use case for a non breaking space character would be examples like{amount} {currency} --> 12,34 €
where you don't want the currency symbol wrapping to the next line all by itself. So is there a way to use non-breaking spaces?Beta Was this translation helpful? Give feedback.
All reactions