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

@ -1,6 +1,6 @@
{ {
"name": "star-rail-warp-export", "name": "star-rail-warp-export",
"version": "0.0.10", "version": "0.0.11",
"main": "./dist/electron/main/main.js", "main": "./dist/electron/main/main.js",
"author": "biuuu <https://github.com/biuuu>", "author": "biuuu <https://github.com/biuuu>",
"license": "MIT", "license": "MIT",

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