feat: sync mixly root files and common folder

This commit is contained in:
yczpf2019
2026-01-24 16:12:04 +08:00
parent 93e17c00ae
commit c8c5fcf726
2920 changed files with 186461 additions and 0 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.readJsonSync(i18nFilePath);
} else {
window.monacoI18N = {};
}
});