Sha256: 4a9b07410895c760abd0f52c49515831272a979f73a045dd9800d51fd166fdcb

Contents?: true

Size: 245 Bytes

Versions: 11

Compression:

Stored size: 245 Bytes

Contents

module Refinery
  module AdminHelper

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

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

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
refinerycms-core-4.0.3 app/helpers/refinery/admin_helper.rb
refinerycms-core-4.0.2 app/helpers/refinery/admin_helper.rb
refinerycms-core-4.0.1 app/helpers/refinery/admin_helper.rb
refinerycms-core-3.0.6 app/helpers/refinery/admin_helper.rb
refinerycms-core-4.0.0 app/helpers/refinery/admin_helper.rb
refinerycms-core-3.0.5 app/helpers/refinery/admin_helper.rb
refinerycms-core-3.0.4 app/helpers/refinery/admin_helper.rb
refinerycms-core-3.0.3 app/helpers/refinery/admin_helper.rb
refinerycms-core-3.0.2 app/helpers/refinery/admin_helper.rb
refinerycms-core-3.0.1 app/helpers/refinery/admin_helper.rb
refinerycms-core-3.0.0 app/helpers/refinery/admin_helper.rb