Module: Tenon::I18nHelper
- Defined in:
- app/helpers/tenon/i18n_helper.rb
Instance Method Summary collapse
Instance Method Details
#language_switcher(table) ⇒ Object
3 4 5 6 7 8 9 |
# File 'app/helpers/tenon/i18n_helper.rb', line 3 def language_switcher(table) if Tenon.config.languages if Tenon::I18nLookup.fields[:tables][table] select_tag 'current_language', ([%w(English en)] + Tenon.config.languages.map { |k, v| [k.to_s.titleize, v] }) end end end |