Skip to content

Commit

Permalink
Merge pull request #536 from Wilzi/main
Browse files Browse the repository at this point in the history
Fix i18n issue with date format in custom title template
  • Loading branch information
antoniandre authored Sep 25, 2024
2 parents 0c1abd7 + 888c129 commit d1eb1ab
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions src/vue-cal/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -366,17 +366,9 @@ export default {
return
}
if (this.locale === 'en') {
const texts = await import('./i18n/en.json')
this.texts = Object.assign({}, textsDefaults, texts)
}
else {
import(`./i18n/${locale}.json`)
.then(response => {
this.texts = Object.assign({}, textsDefaults, response.default)
this.utils.date.updateTexts(this.texts)
})
}
const texts = await import(`./i18n/${locale}.json`)
this.texts = Object.assign({}, textsDefaults, texts)
this.utils.date.updateTexts(this.texts)
},
/**
Expand Down

0 comments on commit d1eb1ab

Please sign in to comment.