mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-30 18:48:55 +01:00
Import all locales from date-fns/locale
This commit is contained in:
parent
a67213fb7b
commit
db494001a2
@ -2,17 +2,7 @@ import Vue from 'vue'
|
||||
import Path from 'path'
|
||||
import vClickOutside from 'v-click-outside'
|
||||
import { formatDistance, format, addDays, isDate, setDefaultOptions } from 'date-fns'
|
||||
import { de as localeDE, enUS as localeENUS, es as localeES, fr as localeFR, hr as localeHR, it as localeIT, pl as localePL, zhCN as localeZNCN } from 'date-fns/locale'
|
||||
let locale = {
|
||||
de: localeDE,
|
||||
enUS: localeENUS,
|
||||
es: localeES,
|
||||
fr: localeFR,
|
||||
hr: localeHR,
|
||||
it: localeIT,
|
||||
pl: localePL,
|
||||
znCN: localeZNCN
|
||||
}
|
||||
import * as locale from 'date-fns/locale'
|
||||
|
||||
Vue.directive('click-outside', vClickOutside.directive)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user