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

Spork doesn't reload I18n translations from config/locales #96

Open
petRUShka opened this issue Mar 22, 2011 · 5 comments
Open

Spork doesn't reload I18n translations from config/locales #96

petRUShka opened this issue Mar 22, 2011 · 5 comments

Comments

@petRUShka
Copy link

Spork doesn't reload I18n translations from config/locales. So I see old translations until I reload spork.

Spork 0.9.0.rc.2, Rails 3

@knoopx
Copy link

knoopx commented Apr 14, 2011

I confirm this behavior

@ilyakatz
Copy link

can you add reload of I18n backend to the each_run block?

Spork.each_run do
I18n.backend.load_translations
end

@nickhoffman
Copy link

@ilyakatz Adding that to the Spork.each_run block causes new translations to be loaded. However, old translations persist.

I believe we want to use I18n.backend.reload!.

@houen
Copy link

houen commented Aug 26, 2011

Thank you @nickhoffman, that worked.

@flov
Copy link

flov commented Dec 22, 2011

Thanks @nickhoffman, that worked, I guess you can close the issue

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

No branches or pull requests

6 participants