Closed jpboehm closed 2 years ago
Hi, can you please upload your german translation file? It's hard to say what's wrong without it.
Hi, yes this could be helpful ;-) https://github.com/jpboehm/warp/blob/6eebe99fd2be206d37428d4b14aa74f3cfa157ef/warp/static/i18n/de.js
Hi,
so it seems that the file is correct, which means that it is not accessible by the app. How do you run the app, in a container? If so, had you added this file to static folder before you built the docker image?
Hi, I'm a newbie to docker unfortunately (any tips?). But I have started the app in a container. About the file: I put the de.js in the Static folder (next to the English and Polish variants), adjusted the demo_compose.yaml and fired it up (in one variant also the config.py) and it doesn't work. The app actually does not find the de.js. Have I forgotten essential steps? I am curious how and if it works in "porduction", if I get there.
Thank you already for the quick answer and support.
ok, so please do the following steps:
de.js
to warp/static/i18n
directoryWARP_LANGUAGE_FILE: 'i18n/en.js'
to environment
section in demo_compose.yaml
docker compose -f demo_compose.yaml build --no-cache
docker compose -f demo_compose.yaml up
the problem you had is that docker used cached versions of containers where your de.js file was not present
You are right, it was a caching issue :-). Thank you so much for support/the hint and this app.
you are welcome - enjoy!
ahh.. and feel free to make a pull request with your DE translation (when you think it is completed)
I will test it and do so!
Hi, whenever I have set, like the doku says, the language in the WARP_LANGUAGE_FILE and restarted the app with a "custom" language (german in this case), all entries and links disappear. Unfortunately, the app does not load the additional i18n file. Do you have an idea what could be causing this?