-
-
Notifications
You must be signed in to change notification settings - Fork 520
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
Missing new translation after a new locale added #213
Comments
Version? Using a branch? |
Version = i18n-js (2.1.2) rails (4.0.1) On the application.js //= require i18n |
Can you try |
Same problem here with rails 4.0.4 and i18n-js 2.1.2. |
@micred Please try |
@PikachuEXE I've had this issue in the past too, and just ran into it again. I'm using Rails Here's a sample app that reproduces the issue: https://github.com/nfm/i18n-precompile-issue It's just a vanilla Rails 4.0.9 app with i18n-js 3.0.0.rc6 added to the Gemfile. To reproduce the issue, run Now move If you modify I ran the same reproduction against i18n-js master (currently at 0ba4000) and saw the same result. |
@nfm Thanks for the sample app! |
@PikachuEXE thanks for suggesting a new issue. If you need any help, just let me know the direction and I can work on PR. |
The
So this "bug" is by design, to make it detect the Summary: by design of Sprocket, it does not detect new files (unless cache cleared) I haven't tried |
OK |
I have added the workaround in README in bfa489c |
Thanks for looking into this @PikachuEXE. Not sure if there's a way to make Sprockets do what we want :( I'd recommend not running |
The problem happens on heroku where you can't run |
@alex88 You can check https://github.com/fnando/i18n-js#known-issues |
I ended changing the |
I guess I should mention that too |
Good! ;) |
fnando#213 - running rake tmp:cache:clear was the only thing that got my translation edits to apply
Still had a problem with this. Capistrano task: (https://gist.github.com/arion/d1afafbe065d7d669ef9) |
@arion |
I will reopen until you solve it |
This is an old issue, but thought I'd share my solution. While it isn't possible to add a directory using the <%
depend_on Rails.root.join("config", "locales").to_s
Dir.glob(Rails.root.join("config", "locales", "**", "*.yml")) do |path|
depend_on path
end
%> If you want to update this project, you could do this in the |
After I made a deploy with capistrano all the new translations are not available. To make it work I should clear the cache and redeploy
The text was updated successfully, but these errors were encountered: