Sha256: fbe5ffdc90daef2a646268f6d556e2674d60d3624489cd91ce866279bdd922fd
Contents?: true
Size: 451 Bytes
Versions: 15
Compression:
Stored size: 451 Bytes
Contents
module Spree module Locales class SetFallbackLocaleForStore def call(store:) store_default_locale = store.default_locale fallbacks = store.supported_locales_list.each_with_object({}) do |locale, object| object[locale] = [store_default_locale] end fallbacks_instance = I18n::Locale::Fallbacks.new(fallbacks) Mobility.store_based_fallbacks = fallbacks_instance end end end end
Version data entries
15 entries across 15 versions & 1 rubygems