Set the Moment.js locale

This commit is contained in:
dohseven 2018-12-25 12:02:26 +01:00
부모 22906b063f
커밋 c5187172f6
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제

파일 보기

@ -1,5 +1,6 @@
import Vue from 'vue'
import VueI18n from 'vue-i18n'
import moment from 'moment'
// Import translations
import en from './en'
@ -48,6 +49,9 @@ for (var i = 0; i < locales.length; ++i) {
}
}
// Set the locale for Moment.js
moment.locale(locale)
export default new VueI18n({
locale: locale,
messages