diff options
| author | Pitu <[email protected]> | 2021-01-04 01:04:20 +0900 |
|---|---|---|
| committer | Pitu <[email protected]> | 2021-01-04 01:04:20 +0900 |
| commit | fcd39dc550dec8dbcb8325e07e938c5024cbc33d (patch) | |
| tree | f41acb4e0d5fd3c3b1236fe4324b3fef9ec6eafe /src/site/plugins/vue-timeago.js | |
| parent | Create FUNDING.yml (diff) | |
| parent | chore: update todo (diff) | |
| download | host.fuwn.me-fcd39dc550dec8dbcb8325e07e938c5024cbc33d.tar.xz host.fuwn.me-fcd39dc550dec8dbcb8325e07e938c5024cbc33d.zip | |
Merge branch 'dev'
Diffstat (limited to 'src/site/plugins/vue-timeago.js')
| -rw-r--r-- | src/site/plugins/vue-timeago.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/site/plugins/vue-timeago.js b/src/site/plugins/vue-timeago.js new file mode 100644 index 0000000..28f3c6d --- /dev/null +++ b/src/site/plugins/vue-timeago.js @@ -0,0 +1,8 @@ +import Vue from 'vue'; +import VueTimeago from 'vue-timeago'; + +Vue.use(VueTimeago, { + name: 'timeago', + locale: 'en-US', + locales: { 'en-US': require('vue-timeago/locales/en-US.json') } +}); |