diff --git a/package.json b/package.json index d1ef9e4..24b3b86 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "star-rail-warp-export", - "version": "0.0.10", + "version": "0.0.11", "main": "./dist/electron/main/main.js", "author": "biuuu ", "license": "MIT", diff --git a/src/main/utils.js b/src/main/utils.js index 913c64c..e48f593 100644 --- a/src/main/utils.js +++ b/src/main/utils.js @@ -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 }