set the locale.

I am a little bit confused.
As far as i can see, i18n.js never worked for other locales than english.
changelog.
changelog fixed.
Merge pull request #474 from opf/fix/i18nJS

I18n.js never exported current locale.
now it does.