mirror of
https://git.meshkee.com/cssd/cssd-front.git
synced 2026-10-13 01:33:18 +03:30
55 lines
806 B
JavaScript
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
|