open-eats / OpenEats

:pizza: Self Hosted Recipe Management App :hamburger:
https://open-eats.github.io/
MIT License
669 stars 102 forks source link

German languages will not be displayed. #134

Closed TheTwist-76 closed 4 years ago

TheTwist-76 commented 4 years ago

I use OpenEats in the Docker Container. I want to use it in German. So I have set the following variable: NODE_LOCALE=de When I login with the console of the container and type "env" NODE_LOCALE=de is set. However, only the English language is displayed.

Even if I rename the language files in the directory de.json to en.json only English is displayed. What am I doing wrong?

RyanNoelk commented 4 years ago

When you update the NODE_LOCALE in the env file do you restart the containers as well? For the locale settings to be applied you should run the restart script: quick-start.py

jzyrobert commented 4 years ago

Do you simply have to restart the containers or rebuild them? As I understand it, the environment variables are copied during the build process by webpack?

geekblog-dev commented 4 years ago

I have exactly the same Problem figured out there is no quick-start.py but there is a gunicorn_start.sh

geekblog-dev commented 4 years ago

Using the Docker from https://github.com/MrNuggelz/OpenEats find / -name quick-start.py ends up with no result.

RyanNoelk commented 4 years ago

Updating NODE_LOCALE =de in your env file and then restarting the containers will update the i18n files and will display the site in German. Running the quick-start.py will restart the containers for you. options for supported langs can be found here

I have exactly the same Problem figured out there is no quick-start.py but there is a gunicorn_start.sh Using the Docker from https://github.com/MrNuggelz/OpenEats find / -name quick-start.py ends up with no result.

If you are having trouble with that fork please open a ticket in that repo, not here.