mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-28 02:40:34 +00:00
Adding moment translation, and to i18next.ts file.
This commit is contained in:
parent
620be4ecd8
commit
3008b45a89
2 changed files with 7 additions and 4 deletions
|
@ -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';
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue