mirror of
https://git.meshkee.com/cssd/cssd-front.git
synced 2026-10-12 10:33:16 +03:30
fix : page title and date show
This commit is contained in:
+33
-1
@@ -13,10 +13,42 @@ 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
|
||||
messages,
|
||||
dateTimeFormats
|
||||
})
|
||||
|
||||
export default i18n
|
||||
|
||||
Reference in New Issue
Block a user