Module: Refinery::AdminHelper

Defined in:
core/app/helpers/refinery/admin_helper.rb

Instance Method Summary collapse

Instance Method Details

#current_admin_localeObject


4
5
6
7
# File 'core/app/helpers/refinery/admin_helper.rb', line 4

def current_admin_locale
  # TODO: move current_admin_locale to Refinery::I18n
  ::I18n.locale
end

#locale_country(locale) ⇒ Object


9
10
11
# File 'core/app/helpers/refinery/admin_helper.rb', line 9

def locale_country(locale)
  locale.to_s.upcase.split('-').last
end