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
Is your feature request related to a problem? Please describe.
This is based on a user feedback enquiry received recently; it would be useful to allow ingredient quantities to be displayed in imperial units in addition to the current metric units.
Describe the solution you'd like
There are a few options to consider here.
We could imply a unit system based on the user's locale.
We could provide per-session configuration setting.
We could provide a more persistent configuration setting.
Describe alternatives you've considered
N/A
Additional context
To some extent, the convert-units JavaScript library that the application already depends upon can provide imperial unit conversion. It's aware of the units, although as far as I know there isn't currently a singleton to_imperial or similar conversion method.
The other question is whether that library's imperial unit representations are suitable for use in the context of kitchen recipes. I'll note that it does define an imperial unit for cups, which is something that in one way is reassuring, because it is included, but also potentially a challenge, because that unit tends to have differing definitions in various locales.
The text was updated successfully, but these errors were encountered:
Additional context
To some extent, the convert-units JavaScript library that the application already depends upon can provide imperial unit conversion. It's aware of the units, although as far as I know there isn't currently a singleton to_imperial or similar conversion method.
The other question is whether that library's imperial unit representations are suitable for use in the context of kitchen recipes. I'll note that it does define an imperial unit for cups, which is something that in one way is reassuring, because it is included, but also potentially a challenge, because that unit tends to have differing definitions in various locales.
The feature-limitations above relate to version 2.3.4 of convert-units, as currently used by this application; however, support for conversion between different measurement systems (for example, metric to imperial) has seems to have been added during the 3.0.0-beta releases. We should attempt an upgrade to one of these; it may provide the functionality we're looking for.
Is your feature request related to a problem? Please describe.
This is based on a user feedback enquiry received recently; it would be useful to allow ingredient quantities to be displayed in imperial units in addition to the current metric units.
Describe the solution you'd like
There are a few options to consider here.
Describe alternatives you've considered
N/A
Additional context
To some extent, the
convert-units
JavaScript library that the application already depends upon can provide imperial unit conversion. It's aware of the units, although as far as I know there isn't currently a singletonto_imperial
or similar conversion method.The other question is whether that library's imperial unit representations are suitable for use in the context of kitchen recipes. I'll note that it does define an imperial unit for
cups
, which is something that in one way is reassuring, because it is included, but also potentially a challenge, because that unit tends to have differing definitions in various locales.The text was updated successfully, but these errors were encountered: