Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache not being cleared correctly #14

Open
purohit opened this issue Jan 10, 2018 · 1 comment
Open

Cache not being cleared correctly #14

purohit opened this issue Jan 10, 2018 · 1 comment

Comments

@purohit
Copy link

purohit commented Jan 10, 2018

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:

rm -rf $(ELM_DIR)/elm-stuff/build-artifacts/0.18.0/fake/url/1.0.0/Translation-Main.elm*

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!

@felixLam
Copy link
Member

Could this be related to: #8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants