From a2145006c878cfd6236925da9dc63b2e8d534112 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sat, 10 Aug 2019 11:33:54 -0700 Subject: [PATCH] Adding the imports. --- ui/src/components/moment-time.tsx | 1 + ui/src/i18next.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/ui/src/components/moment-time.tsx b/ui/src/components/moment-time.tsx index 77dcaf86f..ba1e90bbc 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 0c02abf26..756bab8b6 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) {