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

When using translation in crumb name, it is not updated if the locale changes #29

Closed
bobbus opened this issue May 18, 2012 · 2 comments
Closed

Comments

@bobbus
Copy link
Contributor

bobbus commented May 18, 2012

I do not see where in the code the caching could happen but if I use a proc for the name of the crumb, it is only call the first time I need it, displaying wrong translation if I have changed locale since the first call.

Exemple :
add_crumb(lambda { |i| i.t(:home) }, :root_path)

@denniscastro
Copy link

I must add <% add_crumb t(:home), '/' %> in the application layout.

@bobbus
Copy link
Contributor Author

bobbus commented Jun 1, 2012

Sure but I think it could usefull in controller too

@ghost ghost assigned radar Sep 11, 2012
@andrew andrew closed this as completed Feb 9, 2013
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

4 participants