mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-03-23 10:45:38 +00:00
fix(webapp): fix date select language crash (#9370)
This commit is contained in:
parent
3af5601132
commit
0df685f372
@ -306,7 +306,11 @@ export default {
|
||||
}
|
||||
},
|
||||
async mounted() {
|
||||
await import(`vue2-datepicker/locale/${this.currentUser.locale}`)
|
||||
try {
|
||||
await import(`vue2-datepicker/locale/${this.currentUser.locale}`)
|
||||
} catch {
|
||||
await import('vue2-datepicker/locale/en')
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapGetters({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user