Add a custom timeago.json for shorter timestamps, for example '15s' instead of '15 seconds ago'

このコミットが含まれているのは:
Shpuld Shpuldson 2017-05-31 12:45:03 +03:00
コミット 3a1ae3a30e
2個のファイルの変更11行の追加1行の削除

ファイルの表示

@ -24,7 +24,7 @@ Vue.use(VueRouter)
Vue.use(VueTimeago, {
locale: 'en-US',
locales: {
'en-US': require('vue-timeago/locales/en-US.json')
'en-US': require('../static/timeago.json')
}
})

10
static/timeago.json ノーマルファイル
ファイルの表示

@ -0,0 +1,10 @@
[
"now",
["%ss", "%ss"],
["%smin", "%smin"],
["%sh", "%sh"],
["%sd", "%sd"],
["%sw", "%sw"],
["%sm", "%sm"],
["%sy", "%sy"]
]