From 3617599d322e0bfc5d1749a6f86a19808c3abde0 Mon Sep 17 00:00:00 2001 From: mio <10892119+biuuu@users.noreply.github.com> Date: Thu, 4 May 2023 16:07:17 +0800 Subject: [PATCH] fix: failed to get the correct wrap type --- package.json | 2 +- src/main/utils.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 }