Sha256: fbf8098eab1694841d38bdecd07825856a2604289452e67e4fdb012ccf508510
Contents?: true
Size: 606 Bytes
Versions: 18
Compression:
Stored size: 606 Bytes
Contents
- if I18n.available_locales.reject{ |l| I18n.locale == l }.any? %li.dropdown.active = link_to('#', { class: 'dropdown-toggle', 'data-toggle': 'dropdown', role: 'button', 'aria-haspopup': true, 'aria-expanded': false }) do = t("classes.#{I18n.name.underscore}") %span.caret %ul.dropdown-menu - I18n.available_locales.reject{ |l| I18n.locale == l }.each do |locale| %li{ class: (I18n.locale == locale ? 'active' : nil) } = link_to(url_for(locale: locale.to_s, only_path: true)) do - I18n.with_locale(locale) do = t("locales.#{locale}")
Version data entries
18 entries across 18 versions & 1 rubygems