feat(core): 将Mixly.MJSON调整为Mixly.MJson

This commit is contained in:
王立帮
2025-04-27 15:49:16 +08:00
parent 291667cccf
commit d04ec7bfc7
13 changed files with 76 additions and 59 deletions

View File

@@ -1,10 +1,10 @@
(() => {
goog.require('Mixly.MJSON');
goog.require('Mixly.MJson');
goog.require('Mixly.Config');
goog.provide('Mixly.Msg');
const { Msg, MJSON, Config } = Mixly;
const { Msg, MJson, Config } = Mixly;
const { USER } = Config;
@@ -15,9 +15,9 @@ Msg.LANG_PATH = {
}
Msg.LANG = {
"zh-hans": MJSON.get(Msg.LANG_PATH["zh-hans"]),
"zh-hant": MJSON.get(Msg.LANG_PATH["zh-hant"]),
"en": MJSON.get(Msg.LANG_PATH["en"])
"zh-hans": MJson.get(Msg.LANG_PATH["zh-hans"]),
"zh-hant": MJson.get(Msg.LANG_PATH["zh-hant"]),
"en": MJson.get(Msg.LANG_PATH["en"])
}
Msg.nowLang = USER.language ?? 'zh-hans';

View File

@@ -11,7 +11,7 @@ goog.require('Mixly.Msg');
goog.require('Mixly.BoardManager');
goog.require('Mixly.Config');
goog.require('Mixly.Env');
goog.require('Mixly.MJSON');
goog.require('Mixly.MJson');
goog.require('Mixly.Storage');
goog.require('Mixly.WebSocket.Socket');
goog.provide('Mixly.Setting');
@@ -23,7 +23,7 @@ const {
BoardManager,
Config,
Env,
MJSON,
MJson,
Storage,
Setting
} = Mixly;