// import 'moment/locale/de';
import 'moment/locale/zh-cn';
import 'moment/locale/fr';
+import 'moment/locale/sv';
import { getLanguage } from '../utils';
import { i18n } from '../i18next';
import { de } from './translations/de';
import { zh } from './translations/zh';
import { fr } from './translations/fr';
+import { sv } from './translations/sv';
// https://github.com/nimbusec-oss/inferno-i18next/blob/master/tests/T.test.js#L66
// TODO don't forget to add moment locales for new languages.
const resources = {
- en: en,
- de: de,
- zh: zh,
- fr, fr,
+ en,
+ de,
+ zh,
+ fr,
+ sv,
}
function format(value: any, format: any, lng: any) {