Sha256: 785d86c337c0b2d7df248d5578f48836eaebfb02786f4d11de03486df0ee880b

Contents?: true

Size: 313 Bytes

Versions: 1

Compression:

Stored size: 313 Bytes

Contents

module SolidusI18n
  module AddAvailableLanguagesPreferenceToStore
    def self.prepended(base)
      base.preference :available_locales, :array, default: [:en]
    end

    def preferred_available_locales
      super.map(&:to_sym)
    end
  end

  Spree::Store.prepend AddAvailableLanguagesPreferenceToStore
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solidus_i18n-1.3.0 app/models/spree/store_decorator.rb