mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2026-04-06 01:25:31 +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() {
|
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: {
|
computed: {
|
||||||
...mapGetters({
|
...mapGetters({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user