Skip to content
Snippets Groups Projects
Commit ad41781f authored by Julian's avatar Julian
Browse files

Add new datetime formats

parent 3da9b476
No related branches found
No related tags found
1 merge request!1125Resolve "[Vue] Notifications look ugly"
......@@ -10,6 +10,7 @@ import "./css/global.scss";
import VueI18n from "vue-i18n";
import messages from "./messages.json";
import dateTimeFormats from "./dateTimeFormats.js";
Vue.use(VueI18n);
......@@ -17,6 +18,7 @@ const i18n = new VueI18n({
locale: "en",
fallbackLocale: "en",
messages,
dateTimeFormats
});
// Using this function, apps can register their locale files
......
const dateTimeFormats = {
en: {
short: {
year: "numeric", month: "short", day: "numeric"
},
long: {
year: "numeric", month: "long", day: "numeric", weekday: "long", hour: "numeric", minute: "numeric"
},
timeOnly: {
hour: "numeric", minute: "numeric", second: "numeric"
}
}, de: {
short: {
year: "numeric", month: "short", day: "numeric"
}, long: {
year: "numeric", month: "long", day: "numeric", weekday: "long", hour: "numeric", minute: "numeric"
},
timeOnly: {
hour: "numeric", minute: "numeric", second: "numeric"
}
}
}
export default dateTimeFormats;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment