Module: Locomotive::SitesHelper

Defined in:
app/helpers/locomotive/sites_helper.rb

Instance Method Summary collapse

Instance Method Details

#options_for_site_localesObject



8
9
10
11
12
# File 'app/helpers/locomotive/sites_helper.rb', line 8

def options_for_site_locales
  Locomotive.config.site_locales.map do |locale|
    [I18n.t("locomotive.locales.#{locale}"), locale]
  end
end

#ordered_current_site_localesObject



4
5
6
# File 'app/helpers/locomotive/sites_helper.rb', line 4

def ordered_current_site_locales
  current_site.locales + (Locomotive.config.site_locales - current_site.locales)
end