Update: 更新monaco (version: 0.52.2) 同时增加多国语言支持

This commit is contained in:
王立帮
2025-03-22 15:12:37 +08:00
parent dbc3a6af84
commit 26127b2747
40 changed files with 24969 additions and 115 deletions

View File

@@ -0,0 +1,16 @@
goog.loadJs('common', () => {
goog.require('path');
goog.require('Mixly.Msg');
goog.require('Mixly.Env');
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);
} else {
window.monacoI18N = {};
}
});