mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 21:27:01 +08:00
Add: submodule management
This commit is contained in:
@@ -2,6 +2,7 @@ from typing import Dict
|
||||
|
||||
from module.config.utils import *
|
||||
from module.webui.setting import State
|
||||
from module.submodule.utils import list_mod
|
||||
|
||||
LANG = "zh-CN"
|
||||
TRANSLATE_MODE = False
|
||||
@@ -55,6 +56,11 @@ def reload():
|
||||
for lang in LANGUAGES:
|
||||
if lang not in dic_lang:
|
||||
dic_lang[lang] = {}
|
||||
|
||||
for mod_name, dir_name in list_mod():
|
||||
for path, v in deep_iter(read_file(filepath_i18n(lang, mod_name)), depth=3):
|
||||
dic_lang[lang][".".join(path)] = v
|
||||
|
||||
for path, v in deep_iter(read_file(filepath_i18n(lang)), depth=3):
|
||||
dic_lang[lang][".".join(path)] = v
|
||||
|
||||
|
||||
Reference in New Issue
Block a user