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';
7 import { sv } from './translations/sv';
8 import { ru } from './translations/ru';
10 // https://github.com/nimbusec-oss/inferno-i18next/blob/master/tests/T.test.js#L66
11 // TODO don't forget to add moment locales for new languages.
21 function format(value: any, format: any, lng: any) {
22 if (format === 'uppercase') return value.toUpperCase();
29 // load: 'languageOnly',
31 // initImmediate: false,
41 export { i18n, resources };