mirror of
https://github.com/middleman/middleman.git
synced 2022-11-09 12:20:27 -05:00
14 lines
345 B
Ruby
14 lines
345 B
Ruby
|
[: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
|