Sha256: 3df1a3d629a09a92a0b672ecd0326fba8ef4dc068684ddedff7978b904205380

Contents?: true

Size: 551 Bytes

Versions: 17

Compression:

Stored size: 551 Bytes

Contents

module Locomotive
  module Steam
    module Liquid
      module Tags
        module Concerns

          module I18nPage

            def change_page_locale(locale, drop, &block)
              page = drop.send(:_source)

              page.__with_locale__(locale) do
                if page.templatized? && page.content_entry
                  page.content_entry.__with_locale__(locale) { yield }
                else
                  yield
                end
              end
            end

          end

        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
locomotivecms_steam-1.8.0.alpha2 lib/locomotive/steam/liquid/tags/concerns/i18n_page.rb
locomotivecms_steam-1.8.0.alpha1 lib/locomotive/steam/liquid/tags/concerns/i18n_page.rb
locomotivecms_steam-1.7.1 lib/locomotive/steam/liquid/tags/concerns/i18n_page.rb
locomotivecms_steam-1.7.0 lib/locomotive/steam/liquid/tags/concerns/i18n_page.rb
locomotivecms_steam-1.6.1 lib/locomotive/steam/liquid/tags/concerns/i18n_page.rb
locomotivecms_steam-1.6.0 lib/locomotive/steam/liquid/tags/concerns/i18n_page.rb
locomotivecms_steam-1.6.0.rc1 lib/locomotive/steam/liquid/tags/concerns/i18n_page.rb
locomotivecms_steam-1.6.0.beta1 lib/locomotive/steam/liquid/tags/concerns/i18n_page.rb
locomotivecms_steam-1.5.3 lib/locomotive/steam/liquid/tags/concerns/i18n_page.rb
locomotivecms_steam-1.5.2 lib/locomotive/steam/liquid/tags/concerns/i18n_page.rb
locomotivecms_steam-1.5.1 lib/locomotive/steam/liquid/tags/concerns/i18n_page.rb
locomotivecms_steam-1.5.0 lib/locomotive/steam/liquid/tags/concerns/i18n_page.rb
locomotivecms_steam-1.5.0.rc1 lib/locomotive/steam/liquid/tags/concerns/i18n_page.rb
locomotivecms_steam-1.5.0.rc0 lib/locomotive/steam/liquid/tags/concerns/i18n_page.rb
locomotivecms_steam-1.5.0.beta3 lib/locomotive/steam/liquid/tags/concerns/i18n_page.rb
locomotivecms_steam-1.5.0.beta2 lib/locomotive/steam/liquid/tags/concerns/i18n_page.rb
locomotivecms_steam-1.5.0.beta1 lib/locomotive/steam/liquid/tags/concerns/i18n_page.rb