-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: #116 Add outputMetricUnits to config types and use in itinerary-… #538
base: master
Are you sure you want to change the base?
Conversation
…e in itinerary-body
TODO:
packages/location-field/src/options.tsx:90
But we have to pass through the config somehow.
|
|
…ts to location-field
Not sure if c389bed is the right approach (to pass the outputMetricUnits into the location field component) of if we should access some global configuration from there. |
Sorry for the long delay on this, but have finally had the time to take a look at this. I don't mind this approach, however is it not possible to use react-intl to handle this? |
Thanks, what do you mean exactly? |
Is https://formatjs.io/docs/react-intl/api#formatnumber not appropriate here? |
@miles-grant-ibigroup I don't know. As you can see from the PR, there is already a It's more about passing the setting, whether to use imperial or metric all the way down to the components. |
Thanks for clarifying, I've discussed it with others and I think your approach is the best way to implement this feature. Once the PR is ready the approach has my approval! |
@miles-grant-ibigroup cool :-) Actually I have technical problems to complete the PR ... still this yarn linking stuff :-( There are really more countries (luckily IMO) using the metric system than the imperial one ;-) |
…body