diff options
author | Dessalines <happydooby@gmail.com> | 2019-08-15 14:11:02 -0700 |
---|---|---|
committer | Dessalines <happydooby@gmail.com> | 2019-08-15 14:11:02 -0700 |
commit | 791fdec674ac7431c9daf9046a36d78a27e59555 (patch) | |
tree | 618551bd8c0588262f2ec6f1478d581005771a99 | |
parent | 112d471ff2a7ad779067f3e2c7c257d4f1bf684c (diff) |
Adding moment translation, and to i18next.ts file.
-rw-r--r-- | ui/src/components/moment-time.tsx | 1 | ||||
-rw-r--r-- | ui/src/i18next.ts | 10 |
2 files changed, 7 insertions, 4 deletions
diff --git a/ui/src/components/moment-time.tsx b/ui/src/components/moment-time.tsx index ba1e90bb..2179499f 100644 --- a/ui/src/components/moment-time.tsx +++ b/ui/src/components/moment-time.tsx @@ -3,6 +3,7 @@ import * as moment from 'moment'; // 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'; diff --git a/ui/src/i18next.ts b/ui/src/i18next.ts index 756bab8b..2bd5d559 100644 --- a/ui/src/i18next.ts +++ b/ui/src/i18next.ts @@ -4,14 +4,16 @@ import { en } from './translations/en'; 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) { |