fix : page title and date show

This commit is contained in:
zeinab.ashrafi
2025-03-10 14:37:19 +03:30
parent 1c9a0d71a8
commit 37da47deff
11 changed files with 44 additions and 14 deletions
+33 -1
View File
@@ -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