I am trying to convert an existing site to use middleman 3.1.5. The old site comes in multiple languages. So I am trying to use the middleman i18n feature for that…
As per the very last paragraph on http://middlemanapp.com/advanced/localization/ I wanted to create two different localized versions of a file by following the FILENAME.LANG.html.erb pattern… The example is only with “index”, but I was hoping it would also work for other names… so I added two files
about.en.html.erb
about.de.html.erb
…
However, there seem to be two problems with that:
-
It actually creates four output files: Two I want, two i don’t want:
create build/about.de/index.html
create build/about.en/index.html
create build/de/about.html
create build/about.html -
It seems to ignore the :directory_indexes setting.
Any idea on what I might be doing wrong or how to resolve either problem?