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