tdreyno/middleman-i18n — Issue #1: observations / experience from our attempt at this
Author: agamz
Created: 2011-10-19 19:39:25+00:00
State: open

Your solution looks way more elegant than our hack at https://github.com/agamz/FindBigMail. A few things we're playing with as we get closer to our deployment that may further inform your design & implementation:

* currently changing data/*yml files doesn't trigger a reload when running in server mode. Our hack around this is to touch the config.rb file. Your solution of having locales directories for the en.yml files etc likely takes this into account
* we've gone back on forth on which way the final website should be:
* http://example.com/en/page1 and http://example.com/de/page1
* http://example.com/page1 (en implied) and http://example.com/de/page1
* http://example.com/page and http://de.example.com
and can come up with good scenarios justifying each (though we'll likely do the last)
* server mode is necessarily different. Currently we generate both the links and page names differently based on whether :development is true or not, to account for the different /en vs /de and ending in html or not. I suspect some of this is magically handled by the server already. Related to this, we've moved away from the /pagename/index.html solution for pages without extensions and instead will deploy .html and use apache to hide the extension.

I hope some of this helps. Your software and support has been awesome for this development effort. Thanks!