Files
cssd-front/src/i18n/index.js
T

55 lines
806 B
JavaScript

/**
* Vue i18n
*
* @library
*
* http://kazupon.github.io/vue-i18n/en/
*/
// Lib imports
import Vue from 'vue'
import VueI18n from 'vue-i18n'
import messages from '@/lang'
Vue.use(VueI18n)
const dateTimeFormats = {
en: {
long: {
year: 'numeric',
month: 'long',
day: 'numeric',
hour: '2-digit',
minute: '2-digit'
},
short: {
year: '2-digit',
month: 'short',
day: '2-digit'
}
},
fa: {
long: {
year: 'numeric',
month: 'long',
day: 'numeric',
hour: '2-digit',
minute: '2-digit'
},
short: {
year: '2-digit',
month: 'short',
day: '2-digit'
}
}
}
const i18n = new VueI18n({
locale: 'en',
fallbackLocale: 'en',
messages,
dateTimeFormats
})
export default i18n