summaryrefslogtreecommitdiffstats
path: root/ui/src/components/moment-time.tsx
diff options
context:
space:
mode:
authorDessalines <happydooby@gmail.com>2019-08-08 22:09:36 -0700
committerDessalines <happydooby@gmail.com>2019-08-08 22:09:36 -0700
commit2db71bf1dd3b8d8499bd0f445485bb8e176ccf98 (patch)
tree3047a3d6fd20b6904c41c41d6f44bca83697cfdc /ui/src/components/moment-time.tsx
parentcf4391fed3167e0195b41e0cae5cb7402565d19b (diff)
Localization testing mostly done.
Diffstat (limited to 'ui/src/components/moment-time.tsx')
-rw-r--r--ui/src/components/moment-time.tsx4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/src/components/moment-time.tsx b/ui/src/components/moment-time.tsx
index c6c7c99d..b35ceea8 100644
--- a/ui/src/components/moment-time.tsx
+++ b/ui/src/components/moment-time.tsx
@@ -1,5 +1,7 @@
import { Component } from 'inferno';
import * as moment from 'moment';
+import 'moment/locale/de.js';
+import { getLanguage } from '../utils';
import { i18n } from '../i18next';
interface MomentTimeProps {
@@ -14,6 +16,8 @@ export class MomentTime extends Component<MomentTimeProps, any> {
constructor(props: any, context: any) {
super(props, context);
+ // console.log(moment.locales());
+ moment.locale(getLanguage());
}
render() {