From 91c875ba453347d3b87f78994369ff2be9473860 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Sun, 15 Sep 2024 23:46:14 +0800 Subject: [PATCH] fix --- .../LunaTranslator/myutils/config.py | 8 +++++++ .../files/defaultconfig/static_data.json | 24 ------------------- 2 files changed, 8 insertions(+), 24 deletions(-) diff --git a/LunaTranslator/LunaTranslator/myutils/config.py b/LunaTranslator/LunaTranslator/myutils/config.py index 8519b17d..5f0bef5f 100644 --- a/LunaTranslator/LunaTranslator/myutils/config.py +++ b/LunaTranslator/LunaTranslator/myutils/config.py @@ -519,6 +519,14 @@ language_last = None languageshow = {} +static_data["language_list_translator_inner"] = [ + _["code"] for _ in static_data["lang_list_all"] +] + +static_data["language_list_translator_inner_english"] = [ + _["en"] for _ in static_data["lang_list_all"] +] + def getlanguse(): return globalconfig["languageuse2"] diff --git a/LunaTranslator/files/defaultconfig/static_data.json b/LunaTranslator/files/defaultconfig/static_data.json index 303628bc..6da52e96 100644 --- a/LunaTranslator/files/defaultconfig/static_data.json +++ b/LunaTranslator/files/defaultconfig/static_data.json @@ -1994,30 +1994,6 @@ "languageuse": "ar" } ], - "language_list_translator_inner": [ - "zh", - "ja", - "cht", - "en", - "ru", - "es", - "ko", - "fr", - "vi", - "tr", - "pl", - "uk", - "it", - "ar", - "th", - "bo", - "de", - "sv", - "nl", - "cs", - "pt", - "hu" - ], "model_fileds": [ "word", "remarks",