What is the need / problem
Depending on the countries, producers and hub managers want to set up / sell products using different measure and weight units (kg, L or Pound, etc.). It seems that even in the US sometimes they use Kg. Also in the perspective of single instance, this needs to be thought carefully, and we need to understand if/how we manage “conversions” within the system.
Today only kg and L are supported.
Who does it impact
Today mainly US based users, who can’t really use the OFN local instance.
What is the current impact of this problem
USA can’t use the OFN.
What is the benefit in focusing on this
The community could significantly grow, with a potential large new base of users.
Links to more details
- Previous GH PR but was only translating kg and L so not answering the need at all: https://github.com/openfoodfoundation/openfoodnetwork/pull/2192#issuecomment-381720879
- Previous attempts from @MikeiLL and @elf-pavlik : https://github.com/openfoodfoundation/openfoodnetwork/pull/1029 and https://github.com/openfoodfoundation/openfoodnetwork/pull/1071 but didn’t move forward
- Other previous PR: https://github.com/openfoodfoundation/openfoodnetwork/pull/1018
- Community discussion: USA Planning
Potential solutions that will solve this problem
- “To be forward looking, a slightly more resilient (but still small) step forward could be to add lb, oz, gal, etc. (instead of replace) and then have a map where we could filter which UOMs a particular instance decides to make visible.” (proposal from @rbarreca) with “We need to make these strings translatable by adding new keys in config/locales/en.yml and then adding the proper translation for each of the supported languages, including en_US.yml.” (from @sauloperez)
- Later we will need to move forward and " In any case, this will have to be dealt with as we do with dates normally; We store data agnostic of the settings (UTC) and then that data is localized when displayed, according to the user settings." (from @sauloperez)
Ping @NickWeir @Kirsten @danielle @KatTheFarmer @tschumilas for info as I know you are looking for this, but it’s a bit bigger than we thought so let’s prioritize first and then really take the time to think that properly.