Internationalisation project notes

I have been looking into a way to dynamically change the UI language on the fly.

I can’t find a way to do that, due to the precompilation of assets. Since the libraries like moment.js and its localization files are"compiled", it is not possible to change “on the fly”. Even though we could “externalize” it and include it as a standard javascript, I don’t think it is the right way.

Moreover, there is something strange about locale files. If you change something into it, in environments where the assets are precompiled (staging and production), you need to change the .haml file (not touch, but a real change) to have the modification reflected in the UI after recompiling the assets.

I am not that familiar with Rails, but it seems to be a feature and, thus, it should prevent changing the language dynamicaly.

Any thoughts ?

pinging @RohanM, @maikel and @MyriamBoure.