Skip to content

Instantly share code, notes, and snippets.

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