Skip to content
This repository was archived by the owner on Aug 28, 2025. It is now read-only.
This repository was archived by the owner on Aug 28, 2025. It is now read-only.

Ingredient quantities: allow conversion into imperial units. #252

@jayaddison

Description

@jayaddison

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions