fix: i18n目录移到sage_datamart/i18n(模块级),更正i18n_getmsgs路径
This commit is contained in:
parent
03645f1128
commit
88eb783940
@ -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):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user