fix(i18n): 修复网页i18n的问题
This commit is contained in:
parent
2f94bdd878
commit
32d6f78e32
@ -11,6 +11,7 @@ const messages = {
|
|||||||
const i18n = createI18n({
|
const i18n = createI18n({
|
||||||
locale: uni.getLocale(), // 获取已设置的语言,fallback 语言需要再 manifest.config.ts 中设置
|
locale: uni.getLocale(), // 获取已设置的语言,fallback 语言需要再 manifest.config.ts 中设置
|
||||||
messages,
|
messages,
|
||||||
|
allowComposition: true,
|
||||||
})
|
})
|
||||||
|
|
||||||
console.log(uni.getLocale())
|
console.log(uni.getLocale())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user