Module: I18nHelper

Defined in:
app/helpers/i18n_helper.rb

Instance Method Summary collapse

Instance Method Details

#language_switcher_htmlObject



3
4
5
6
7
8
# File 'app/helpers/i18n_helper.rb', line 3

def language_switcher_html
  I18n.available_locales.collect do |language|
    # tag(:img, :class => "flag flag-#{language}", :alt => language)
    link_to language, { locale: language }
  end.join(" | ").html_safe
end