about summary refs log tree commit diff
path: root/src/App.web.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/App.web.tsx')
-rw-r--r--src/App.web.tsx28
1 files changed, 26 insertions, 2 deletions
diff --git a/src/App.web.tsx b/src/App.web.tsx
index 34b6ac6cb..a6f98487c 100644
--- a/src/App.web.tsx
+++ b/src/App.web.tsx
@@ -1,9 +1,33 @@
 import React, {useState, useEffect} from 'react'
-import {RootStore, setupState, RootStoreProvider} from './state'
+import moment from 'moment'
+import {RootStoreModel, setupState, RootStoreProvider} from './state'
 import * as Routes from './view/routes'
 
+moment.updateLocale('en', {
+  relativeTime: {
+    future: 'in %s',
+    past: '%s ago',
+    s: 'a few seconds',
+    ss: '%ds',
+    m: 'a minute',
+    mm: '%dm',
+    h: 'an hour',
+    hh: '%dh',
+    d: 'a day',
+    dd: '%dd',
+    w: 'a week',
+    ww: '%dw',
+    M: 'a month',
+    MM: '%dmo',
+    y: 'a year',
+    yy: '%dy',
+  },
+})
+
 function App() {
-  const [rootStore, setRootStore] = useState<RootStore | undefined>(undefined)
+  const [rootStore, setRootStore] = useState<RootStoreModel | undefined>(
+    undefined,
+  )
 
   // init
   useEffect(() => {