From: Dessalines Date: Sat, 17 Aug 2019 20:32:59 +0000 (-0700) Subject: Adding more settings for german. X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/readmes/%7B%7D/%22%7Burl%7D/%7BelementUrl%7D?a=commitdiff_plain;h=01738fb554b7c5407a8a01c5b08950313c662e93;p=lemmy.git Adding more settings for german. --- diff --git a/README.md b/README.md index f66d3d18..d1067f57 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/ui/src/components/moment-time.tsx b/ui/src/components/moment-time.tsx index 83c97fb3..cadd4922 100644 --- a/ui/src/components/moment-time.tsx +++ b/ui/src/components/moment-time.tsx @@ -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'; diff --git a/ui/src/utils.ts b/ui/src/utils.ts index c0a62114..27dcdca3 100644 --- a/ui/src/utils.ts +++ b/ui/src/utils.ts @@ -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'; }