mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-09 00:40:45 +08:00
Plugins/Skills install and edit via mcpServers JSON, with clearer row actions, soft reloads, and instant loading placeholders; also drop MCP market and harden related scheduler/logging/exec guards. Co-authored-by: Cursor <cursoragent@cursor.com>
17 lines
391 B
JavaScript
17 lines
391 B
JavaScript
const LANG_KEY = "ops_admin_lang";
|
|
let lang = "zh";
|
|
try {
|
|
lang = String(localStorage.getItem(LANG_KEY) || "zh").toLowerCase();
|
|
} catch (_) {
|
|
lang = "zh";
|
|
}
|
|
if (lang !== "zh" && lang !== "en") lang = "zh";
|
|
|
|
export const state = {
|
|
currentLang: lang,
|
|
authSession: null,
|
|
/** @type {null | (() => any)} */
|
|
reauthHandler: null,
|
|
/** @type {null | (() => any)} */
|
|
navigate: null,
|
|
};
|