Replies: 1 comment 4 replies
-
That's inherently a fairly tricky problem. Solutions I've seen are mostly around supporting only decimal separator which narrows down to either . or , then parse number from there. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
We're making extensive use of formatjs for
i18n
, so first up – thanks for the hard work!Next, we're working with forms where the inputs will be undertaken in a localised format. The numbers going in are great – number skeletons make use of
scale
allowing us to transform from our internal number system to the partner's desired format. The problem is, when the user enters a value, we need to reverse transform the value based on the number skeleton.That is:
Any thoughts on best strategy to adopt to enable this?
Beta Was this translation helpful? Give feedback.
All reactions