Module: Pageflow::Admin::LocalesHelper

Defined in:
app/helpers/pageflow/admin/locales_helper.rb

Overview

Since:

  • 12.2

Instance Method Summary collapse

Instance Method Details

#available_locales_collectionObject

Since:

  • 12.2



4
5
6
7
8
# File 'app/helpers/pageflow/admin/locales_helper.rb', line 4

def available_locales_collection
  Pageflow.config.available_locales.map do |locale|
    [I18n.t('language', locale: locale), locale.to_s]
  end
end