diff options
author | Dessalines <happydooby@gmail.com> | 2019-08-10 11:33:54 -0700 |
---|---|---|
committer | Dessalines <happydooby@gmail.com> | 2019-08-10 11:33:54 -0700 |
commit | a2145006c878cfd6236925da9dc63b2e8d534112 (patch) | |
tree | 426a82c0d16319faaf6927875cc42ce8ca95642b | |
parent | 529c550bdde8febd411429cca26b01c72b0374e9 (diff) |
Adding the imports.
-rw-r--r-- | ui/src/components/moment-time.tsx | 1 | ||||
-rw-r--r-- | ui/src/i18next.ts | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/ui/src/components/moment-time.tsx b/ui/src/components/moment-time.tsx index 77dcaf86..ba1e90bb 100644 --- a/ui/src/components/moment-time.tsx +++ b/ui/src/components/moment-time.tsx @@ -2,6 +2,7 @@ import { Component } from 'inferno'; import * as moment from 'moment'; // import 'moment/locale/de'; import 'moment/locale/zh-cn'; +import 'moment/locale/fr'; import { getLanguage } from '../utils'; import { i18n } from '../i18next'; diff --git a/ui/src/i18next.ts b/ui/src/i18next.ts index 0c02abf2..756bab8b 100644 --- a/ui/src/i18next.ts +++ b/ui/src/i18next.ts @@ -3,6 +3,7 @@ import { getLanguage } from './utils'; import { en } from './translations/en'; import { de } from './translations/de'; import { zh } from './translations/zh'; +import { fr } from './translations/fr'; // 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. @@ -10,6 +11,7 @@ const resources = { en: en, de: de, zh: zh, + fr, fr, } function format(value: any, format: any, lng: any) { |