oclaw/interfaces/admin/static/js/state.js
oliver f6f129931f Ship Cursor-only MCP admin and modular Admin/Chat UI.
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>
2026-08-12 19:38:26 +08:00

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,
};