fix: i18n目录移到sage_datamart/i18n(模块级),更正i18n_getmsgs路径

This commit is contained in:
yumoqing 2026-07-24 13:50:46 +08:00
parent 03645f1128
commit 88eb783940
5 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
import json, os
lang = params.get('lang', 'zh')
i18n_dir = os.path.join(os.path.dirname(__file__), 'i18n', lang)
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):