Skip to content

Commit

Permalink
fix: failed to get the correct wrap type
Browse files Browse the repository at this point in the history
  • Loading branch information
biuuu committed May 4, 2023
1 parent c724727 commit 3617599
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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 <https://github.com/biuuu>",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/main/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 3617599

Please sign in to comment.