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';
7 // https://github.com/nimbusec-oss/inferno-i18next/blob/master/tests/T.test.js#L66
8 // TODO don't forget to add moment locales for new languages.
15 function format(value: any, format: any, lng: any) {
16 if (format === 'uppercase') return value.toUpperCase();
23 // load: 'languageOnly',
25 // initImmediate: false,
35 export { i18n, resources };