vue-cli-plugin-vuetify-admin
Version:
Vue CLI plugin for Vuetify Admin
37 lines (34 loc) • 544 B
JavaScript
import i18n from "@/i18n";
/**
* Date format
*/
["en", "fr"].forEach((locale) => {
i18n.setDateTimeFormat(locale, {
short: {
year: "numeric",
month: "short",
day: "numeric",
},
long: {
year: "numeric",
month: "long",
day: "numeric",
weekday: "long",
},
});
});
/**
* Number format
*/
i18n.setNumberFormat("en", {
currency: {
style: "currency",
currency: "USD",
},
});
i18n.setNumberFormat("fr", {
currency: {
style: "currency",
currency: "EUR",
},
});