fix: 删除多余i18n_getmsgs.dspy+注册
This commit is contained in:
parent
88eb783940
commit
1af03bf195
@ -11,7 +11,6 @@ PATHS_ANY = [
|
||||
f"/{MOD}/cron/etl_sync.dspy",
|
||||
f"/{MOD}/cron/etl_aggregate.dspy",
|
||||
f"/{MOD}/cron/etl_provider_cost.dspy",
|
||||
f"/{MOD}/i18n_getmsgs",
|
||||
]
|
||||
|
||||
PATHS_LOGINED = [
|
||||
|
||||
@ -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)
|
||||
Loading…
x
Reference in New Issue
Block a user