Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Refinery CMS: a list of all frontend locales with links
<% Refinery::I18n.config.frontend_locales.each do |locale| %>
<%= link_to "/#{locale.to_s + request.path}", {:title => Refinery::I18n.locales[locale]} do%>
<span><%= Refinery::I18n.locales[locale] %></span>
<% end -%>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment