We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43bee4e commit 38aa8d9Copy full SHA for 38aa8d9
packages/@vue/cli-ui/src/i18n.js
@@ -1,7 +1,7 @@
1
import Vue from 'vue'
2
import VueI18n from 'vue-i18n'
3
import deepmerge from 'deepmerge'
4
-import VueTimeago from 'vue-timeago'
+import VueTimeago, { createTimeago } from 'vue-timeago'
5
6
Vue.use(VueI18n)
7
@@ -50,7 +50,7 @@ async function autoDetect () {
50
}
51
52
const dateFnsLocale = i18n.locale.toLowerCase().replace(/-/g, '_')
53
- Vue.component('VueTimeago', VueTimeago.createTimeago({
+ Vue.component('VueTimeago', createTimeago({
54
name: 'VueTimeago',
55
locale: i18n.locale,
56
locales: {
0 commit comments