From: Dessalines Date: Sat, 10 Aug 2019 18:33:54 +0000 (-0700) Subject: Adding the imports. X-Git-Url: http://these/git/%7B%27/docs/index.html%27%7D?a=commitdiff_plain;h=4c978d74f96f6d2784a759e260b219cb9149a265;p=lemmy.git Adding the imports. --- 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) {