From c5187172f66fa220f075ceb0ed810d62a5addb51 Mon Sep 17 00:00:00 2001 From: dohseven Date: Tue, 25 Dec 2018 12:02:26 +0100 Subject: [PATCH] Set the Moment.js locale --- flatisfy/web/js_src/i18n/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/flatisfy/web/js_src/i18n/index.js b/flatisfy/web/js_src/i18n/index.js index bf8fec7..91fd4b9 100644 --- a/flatisfy/web/js_src/i18n/index.js +++ b/flatisfy/web/js_src/i18n/index.js @@ -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