Hi,
i ran into some problems with i18n. I think it is a configuration problem on my side, and i am also sure you can point me into the right direction.
Steps i've made:
- beside de en.json language file, i put a de.json file into ./locales
- In var site = require('apostrophe-site')({ i overwrite i18n:
, i18n: {
locales: ['de', 'en']
,
cookie: 'apos_language'
,
directory: __dirname + '/locales'
,
defaultLocale: 'de'
}
- and in the middleware of my language switcher i set the cookie:
res.cookie('apos_language', req.session.language, { maxAge: 900000, httpOnly: false });
The cookie is set correctly to "de" and "en", but the text does not change it langauge at all for all the translated __('') terms.
some hints for me?
Thanks,
kris