-
-
Notifications
You must be signed in to change notification settings - Fork 519
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
Translations do not update in rails 5 #404
Comments
Hi @steventen it's a known issue with this plugin #306 and In production I actually update the asset version in order to expire all caches. It's the only way that works reliably for me. |
@tilsammans sorry but your response is false. This is only on Rails 5. It is due to the |
We still have this problem after upgrading to Rails 5 even using rc14. Have to clear tmp after every change to our translation yml files. Also production deploy does not build any new translation file. |
Besides rails 5 can you provide details about other asset related dependencies? A more advanced (maybe not very easy for the first time but easier for debugging) But you need to clear the assets cache though, like |
Tested with both Currently we've patched it by creating our own translations javascript file with explicit If I get some time today will revert the hack and see if i18n-js master works out 👍 |
Thanks |
Ok got some info on this. Apparently So it's a load order problem. By explicitly adding Would be nice if the developer wouldn't have to bother about such details, if possible. You probably know more than me about this stuff since I've never written a railtie myself :) |
I guess the gem can try to require What do you think? |
@PikachuEXE yes I think an entry in the README would suffice. I think we were a bit of an edge case since rails usually generates an |
Please see the change in |
Perfect 👍 |
@steventen |
I'm still having this issue in Rails 6, and |
@dssjoblom |
Hi,
I'm using this gem in rails 5 rc1, and I'm using the Asset Pipeline setup.
In my local development, the translations couldn't update automatically after I update the content in locale yml files. I tried to restart the server and it won't work.
Right now, I have to manually run
rake tmp:clear
to make it work.The text was updated successfully, but these errors were encountered: