mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-17 18:04:01 +00:00
Adding more settings for german.
This commit is contained in:
parent
4e8b9701df
commit
01738fb554
3 changed files with 4 additions and 2 deletions
|
@ -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).
|
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
|
## Credits
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { Component } from 'inferno';
|
import { Component } from 'inferno';
|
||||||
import * as moment from 'moment';
|
import * as moment from 'moment';
|
||||||
// import 'moment/locale/de';
|
import 'moment/locale/de';
|
||||||
import 'moment/locale/zh-cn';
|
import 'moment/locale/zh-cn';
|
||||||
import 'moment/locale/fr';
|
import 'moment/locale/fr';
|
||||||
import 'moment/locale/sv';
|
import 'moment/locale/sv';
|
||||||
|
|
|
@ -182,6 +182,8 @@ export function getMomentLanguage(): string {
|
||||||
lang = 'sv';
|
lang = 'sv';
|
||||||
} else if (lang.startsWith('fr')) {
|
} else if (lang.startsWith('fr')) {
|
||||||
lang = 'fr';
|
lang = 'fr';
|
||||||
|
} else if (lang.startsWith('de')) {
|
||||||
|
lang = 'de';
|
||||||
} else {
|
} else {
|
||||||
lang = 'en';
|
lang = 'en';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue