Set the Moment.js locale
This commit is contained in:
parent
22906b063f
commit
c5187172f6
@ -1,5 +1,6 @@
|
|||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import VueI18n from 'vue-i18n'
|
import VueI18n from 'vue-i18n'
|
||||||
|
import moment from 'moment'
|
||||||
|
|
||||||
// Import translations
|
// Import translations
|
||||||
import en from './en'
|
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({
|
export default new VueI18n({
|
||||||
locale: locale,
|
locale: locale,
|
||||||
messages
|
messages
|
||||||
|
Loading…
Reference in New Issue
Block a user