fix: failed to get the correct wrap type

This commit is contained in:
mio
2023-05-04 16:07:17 +08:00
parent c724727886
commit 3617599d32
2 changed files with 2 additions and 2 deletions

View File

@ -135,7 +135,7 @@ const detectLocale = (value) => {
const locale = value || app.getLocale()
let result = 'zh-cn'
for (let [key, list] of localeMap) {
if (list.includes(locale)) {
if (locale === key || list.includes(locale)) {
result = key
break
}