Orbit/app/views/layouts/_lang_menu.html.erb

8 lines
215 B
Plaintext
Raw Permalink Normal View History

<%= raw(VALID_LOCALES.map{ |locale|
if I18n.locale.to_s.eql?(locale)
t(:_locale, :locale => locale)
else
link_to t(:_locale, :locale => locale), params.merge({:locale => locale})
end
}.join(' | ')) %>