fix(i18n): 修复网页i18n的问题

This commit is contained in:
wyl86 2024-06-26 22:34:22 +08:00
parent 2f94bdd878
commit 32d6f78e32
No known key found for this signature in database
GPG Key ID: 778CA5A622551CA5

View File

@ -11,6 +11,7 @@ const messages = {
const i18n = createI18n({
locale: uni.getLocale(), // 获取已设置的语言fallback 语言需要再 manifest.config.ts 中设置
messages,
allowComposition: true,
})
console.log(uni.getLocale())