Skip to content
Snippets Groups Projects
Commit bf7190bf authored by lambadalambda's avatar lambadalambda
Browse files

Merge branch 'feature/custom-timestamps' into 'develop'

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

See merge request !80
parents d44d88da 3a1ae3a3
Branches
No related tags found
No related merge requests found
......@@ -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')
}
})
......
[
"now",
["%ss", "%ss"],
["%smin", "%smin"],
["%sh", "%sh"],
["%sd", "%sd"],
["%sw", "%sw"],
["%sm", "%sm"],
["%sy", "%sy"]
]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment