lib/lalala/views/title_bar.rb in lalala-4.0.0.dev.285 vs lib/lalala/views/title_bar.rb in lalala-4.0.0.dev.288
- old
+ new
@@ -15,9 +15,10 @@
div :class => "locale_chooser" do
select(class: "bypass-chosen") do
locales.each do |locale|
+ next if Rails.application.config.lalala.i18n.excluded_locales.try(:include?, locale)
opts = { :value => locale.to_s }
opts[:'data-default'] = "true" if I18n.default_locale == locale
opts[:'data-current'] = "true" if I18n.locale == locale
option opts do
text_node Lalala::ExtI18n::NameForLocale.name_for_locale(locale)