Is there a way to force a decimal separator for useNumberField/NumberField? #5422
-
I'm currently using I checked the documentation for the hook, component and also the MDN documentation for Intl.NumberFormat but couldn't find a definitive answer. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
Given that lat/long coordinates really shouldn't be localized, as near as I can tell https://ux.stackexchange.com/questions/85702/localizing-coordinates You could pass the locale When you move to the component, you can wrap it in the i18n provider https://react-spectrum.adobe.com/react-aria/internationalization.html |
Beta Was this translation helpful? Give feedback.
Given that lat/long coordinates really shouldn't be localized, as near as I can tell https://ux.stackexchange.com/questions/85702/localizing-coordinates
You could pass the locale
'en-US'
to the hook. Then it would always have a decimal and shouldn't cause a problem because it shouldn't be localized to anything else.When you move to the component, you can wrap it in the i18n provider https://react-spectrum.adobe.com/react-aria/internationalization.html