dilmaheu / dilmahtea.me

MIT License
2 stars 2 forks source link

🐛 BUG: localization of enumeration fields #222

Open jurjendevries opened 1 year ago

jurjendevries commented 1 year ago

Describe the bug We are using a enumeration field at a recipe collection type to ingredient measurements unit. So to ask the editor if it is in cup, gr, ml, kg, l, spoon, tablespoon, teaspoon. But it seems the enumeration field does’n t have the Localization option. For the output we need to have translation values so people in other languages in English can see the amounts as well.

Steps to Reproduce Steps to reproduce the behavior:

  1. Go to https://dilmahtea.me/en/diy-bubble-tea/
  2. Scroll down to Nutrition information
  3. See the amounts in gram
  4. Click the German language in the language selector
  5. See the amounts in gram, we can't find an option to translate those measurements units.

Expected behavior Translated output of measurements units in all the available languages, translation should be possible to do by the content editors in the CMS.

Screenshots N/A

Desktop (please complete the following information): N/A

Smartphone (please complete the following information): N/A

Additional context Posted as Strapi community forum support https://forum.strapi.io/t/localization-for-enum-possible/25736

jurjendevries commented 1 year ago

Possibly we can solve this by a custom field. @yaikohi Can you have look at this? its mostly about having other types of weights such as ounces besides grams.

yaikohi commented 1 year ago

I am waiting for access to Hetzner!! But I'll try to make a template repo just to practice with strapi a bit in the meanwhile.

jurjendevries commented 1 year ago

@yaikohi I just invited you to the Hetzner cloud dashboard. By this control panel you can make backups before you start changing things in Strapi. There is an automatic backup every night (also at hetzner, we still need to setup external backups) of the whole VPS. But it will be good to create backups before you start as well, because possibly a content editor already did some work, stock have been updated or so. So in the near future we also need a development Strapi server.

For the SSH console you need an SSH key on your client? Do you already have one? If so, please share the public key with me together with the preferred username and I will add your local user account on the server.