Adding more settings for german.

This commit is contained in:
Dessalines 2019-08-17 13:32:59 -07:00
parent 43120f5905
commit d0a9cef72e
3 changed files with 4 additions and 2 deletions

View file

@ -150,7 +150,7 @@ Lemmy is free, open-source software, meaning no advertising, monetizing, or vent
If you'd like to add translations, take a look a look at the [english translation file](ui/src/translations/en.ts).
- Languages supported: `en`, `zh`, `fr`, `sv`
- Languages supported: `en`, `zh`, `fr`, `sv`, `de`
## Credits

View file

@ -1,6 +1,6 @@
import { Component } from 'inferno';
import * as moment from 'moment';
// import 'moment/locale/de';
import 'moment/locale/de';
import 'moment/locale/zh-cn';
import 'moment/locale/fr';
import 'moment/locale/sv';

View file

@ -182,6 +182,8 @@ export function getMomentLanguage(): string {
lang = 'sv';
} else if (lang.startsWith('fr')) {
lang = 'fr';
} else if (lang.startsWith('de')) {
lang = 'de';
} else {
lang = 'en';
}