1 import i18next from 'i18next';
2 import { getLanguage } from './utils';
3 import { en } from './translations/en';
4 import { eo } from './translations/eo';
5 import { es } from './translations/es';
6 import { de } from './translations/de';
7 import { fr } from './translations/fr';
8 import { sv } from './translations/sv';
9 import { ru } from './translations/ru';
10 import { zh } from './translations/zh';
11 import { nl } from './translations/nl';
12 import { it } from './translations/it';
13 import { fi } from './translations/fi';
14 import { ca } from './translations/ca';
16 // https://github.com/nimbusec-oss/inferno-i18next/blob/master/tests/T.test.js#L66
32 const format = (value: any, format: any, lng: any) => format === 'uppercase' ? value.toUpperCase() : value;
36 // load: 'languageOnly',
38 // initImmediate: false,
42 interpolation: { format },
45 export { i18next as i18n, resources };