feat(core): 将goog.get接口调整为goog.readJsonSync以指示其同步操作特性
This commit is contained in:
@@ -8,7 +8,7 @@ const { Msg, Env } = Mixly;
|
||||
|
||||
if (['zh-hans', 'zh-hant'].includes(Msg.nowLang)) {
|
||||
const i18nFilePath = path.join(Env.templatePath, `json/monaco.i18n.${Msg.nowLang}.json`);
|
||||
window.monacoI18N = goog.getJSON(i18nFilePath);
|
||||
window.monacoI18N = goog.readJsonSync(i18nFilePath);
|
||||
} else {
|
||||
window.monacoI18N = {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user