1 import * as i18n from 'i18next';
2 import { getLanguage } from './utils';
3 import { en } from './translations/en';
4 import { de } from './translations/de';
5 import { zh } from './translations/zh';
6 import { fr } from './translations/fr';
8 // https://github.com/nimbusec-oss/inferno-i18next/blob/master/tests/T.test.js#L66
9 // TODO don't forget to add moment locales for new languages.
17 function format(value: any, format: any, lng: any) {
18 if (format === 'uppercase') return value.toUpperCase();
25 // load: 'languageOnly',
27 // initImmediate: false,
37 export { i18n, resources };