You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I have a setup with a German and English-US translation, and when I run (from my Makefile):
cd $(ELM_DIR) && elm-i18n-switch --yes -l de --output .
cd $(ELM_DIR) && elm-i18n-switch --yes -l en-US --output .
I get two .js files as I expect, but they are both in German, as if they only used Translation/de/Main.elm. The symlinking and corresponding Translation/[lang]/Main.elm files are correct, but the compilation was very fast, which hinted at the cache not being cleared.
When I manually run this line before each elm-i18n-switch command:
Then everything works: the cache is cleared and my .js files are correct (German in de.js and English-US in en-US.js). I am not really familiar with Elm cache internals, but this was the solution that worked for me and confused me for a while since from the README it seemed like the library would take care of clearing the cache.
Any thoughts on this? BTW -- thanks for the great library!
The text was updated successfully, but these errors were encountered:
Hello, I have a setup with a German and English-US translation, and when I run (from my Makefile):
I get two
.js
files as I expect, but they are both in German, as if they only usedTranslation/de/Main.elm
. The symlinking and correspondingTranslation/[lang]/Main.elm
files are correct, but the compilation was very fast, which hinted at the cache not being cleared.When I manually run this line before each
elm-i18n-switch
command:Then everything works: the cache is cleared and my
.js
files are correct (German inde.js
and English-US inen-US.js
). I am not really familiar with Elm cache internals, but this was the solution that worked for me and confused me for a while since from the README it seemed like the library would take care of clearing the cache.Any thoughts on this? BTW -- thanks for the great library!
The text was updated successfully, but these errors were encountered: