cn locales to vuetify standard

This commit is contained in:
Alireza Ahmadi
2024-06-15 20:11:39 +02:00
parent f5792c9d82
commit ccbd591b39
4 changed files with 23 additions and 8 deletions
+8 -1
View File
@@ -120,7 +120,14 @@ export default {
computed: {
locale() {
const l = i18n.global.locale.value
return l.replace('zh', 'zh-')
switch (l) {
case "zhHans":
return "zh-cn"
case "zhHant":
return "zh-tw"
default:
return l
}
},
},
watch: {