Report templates ported to ReactJS and Knex.

Does not run yet because reports have dependencies on the old report templates.
This commit is contained in:
Tomas Bures 2017-07-09 15:41:53 +02:00
parent be7da791db
commit d4cea46f07
29 changed files with 807 additions and 688 deletions

View file

@ -1,12 +1,13 @@
import i18n from 'i18next';
import XHR from 'i18next-xhr-backend';
// import Cache from 'i18next-localstorage-cache';
import mailtrainConfig from 'mailtrainConfig';
i18n
.use(XHR)
// .use(Cache)
.init({
lng: 'en', // FIXME set language from mailtrain (ideally from react-root.hbs)
lng: mailtrainConfig.language,
wait: true, // globally set to wait for loaded translations in translate hoc