Sha256: 4ec898e969f48816ecca26edab2804783f7f5f2efb9d479683a5f68a6f90518e

Contents?: true

Size: 345 Bytes

Versions: 35

Compression:

Stored size: 345 Bytes

Contents

[:en, :es].each do |locale|
  proxy "/#{locale}/index.html", "index.html", :ignore => true do
    ::I18n.locale = locale
  end
end

proxy "/fr/index.html", "index.html", :lang => :fr

activate :i18n

# This is what breaks i18n, just because it adds a resource list manipulator that 
# forces a rebuild of the resource list.
activate :asset_hash

Version data entries

35 entries across 35 versions & 3 rubygems

Version Path
middleman-core-3.4.1 fixtures/i18n-force-locale/config.rb
middleman-core-3.4.0 fixtures/i18n-force-locale/config.rb
middleman-core-3.3.12 fixtures/i18n-force-locale/config.rb
middleman-core-3.3.11 fixtures/i18n-force-locale/config.rb
middleman-core-3.3.10 fixtures/i18n-force-locale/config.rb
middleman-core-3.3.9 fixtures/i18n-force-locale/config.rb
middleman-core-3.3.8 fixtures/i18n-force-locale/config.rb
middleman-core-3.3.7 fixtures/i18n-force-locale/config.rb
middleman-core-3.3.6 fixtures/i18n-force-locale/config.rb
middleman-core-3.3.5 fixtures/i18n-force-locale/config.rb
middleman-core-cj-3.3.6 fixtures/i18n-force-locale/config.rb
middleman-core-cj-3.3.5 fixtures/i18n-force-locale/config.rb
middleman-core-cj-3.3.4 fixtures/i18n-force-locale/config.rb
middleman-core-3.3.4 fixtures/i18n-force-locale/config.rb
middleman-core-3.3.3 fixtures/i18n-force-locale/config.rb
middleman-core-3.3.2 fixtures/i18n-force-locale/config.rb
middleman-core-3.3.1 fixtures/i18n-force-locale/config.rb
middleman-core-3.3.0 fixtures/i18n-force-locale/config.rb
middleman-core-3.2.2 fixtures/i18n-force-locale/config.rb
middleman-core-3.2.1 fixtures/i18n-force-locale/config.rb