Replace momentjs - it is too large of a dependency
This commit is contained in:
parent
041bfa22a9
commit
efc28b0098
7 changed files with 37 additions and 35 deletions
|
@ -1,4 +1,3 @@
|
|||
import moment from 'moment'
|
||||
import {library} from '@fortawesome/fontawesome-svg-core'
|
||||
|
||||
import {faArrowLeft} from '@fortawesome/free-solid-svg-icons/faArrowLeft'
|
||||
|
@ -16,26 +15,6 @@ import {faRetweet} from '@fortawesome/free-solid-svg-icons/faRetweet'
|
|||
import {faX} from '@fortawesome/free-solid-svg-icons/faX'
|
||||
|
||||
export function setup() {
|
||||
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',
|
||||
},
|
||||
})
|
||||
library.add(
|
||||
faArrowLeft,
|
||||
faBars,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue