fix: 删除多余i18n_getmsgs.dspy+注册

This commit is contained in:
yumoqing 2026-07-24 13:50:54 +08:00
parent 88eb783940
commit 1af03bf195
2 changed files with 0 additions and 14 deletions

View File

@ -11,7 +11,6 @@ PATHS_ANY = [
f"/{MOD}/cron/etl_sync.dspy", f"/{MOD}/cron/etl_sync.dspy",
f"/{MOD}/cron/etl_aggregate.dspy", f"/{MOD}/cron/etl_aggregate.dspy",
f"/{MOD}/cron/etl_provider_cost.dspy", f"/{MOD}/cron/etl_provider_cost.dspy",
f"/{MOD}/i18n_getmsgs",
] ]
PATHS_LOGINED = [ PATHS_LOGINED = [

View File

@ -1,13 +0,0 @@
import json, os
lang = params.get('lang', 'zh')
i18n_dir = os.path.join(os.path.dirname(__file__), '..', 'sage_datamart', 'i18n', lang)
i18n_file = os.path.join(i18n_dir, 'i18n.json')
if os.path.exists(i18n_file):
with open(i18n_file, 'r', encoding='utf-8') as f:
msgs = json.load(f)
else:
msgs = {}
return json.dumps(msgs, ensure_ascii=False)