Nutriments are not translated in edit mode
teolemon opened this issue · 5 comments
teolemon commented
aleene commented
I suspect this is related to Realm, as it can not find the translation in the Nutriments taxonomy.
teolemon commented
When you click on add a nutrient, you get a list of very nice looking nutrients. Are those from Realm as well ?
aleene commented
Yes those are taken from Realm as well, but with a different call.
aleene commented
I can only explain this if the key we use has changed.
We seem to have lost the prefix en: somehow. Adding it solves the issue for most keys.
There is only an issue for carbohydrates and fiber left.
The intention of the change was to use the same keys for the json as for the nutriment taxonomies. And there seems to be a mismatch.
- carbohydrate vs en:carbohydrates
- fiber vs en:dietary-fiber