MCPcopy Create free account
hub / github.com/Gan-Xing/CodexBridge / parseExplicitLocale

Function parseExplicitLocale

src/core/bridge_coordinator.ts:17177–17184  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

17175}
17176
17177function parseExplicitLocale(value) {
17178 const normalized = normalizeLocale(value);
17179 const raw = String(value ?? '').trim().toLowerCase();
17180 if (!raw || !['zh', 'zh-cn', 'zh-hans', 'en', 'en-us'].includes(raw)) {
17181 return null;
17182 }
17183 return normalized;
17184}
17185
17186function normalizeCommandName(value) {
17187 const normalized = String(value ?? '').trim().toLowerCase();

Callers 1

handleLangCommandMethod · 0.85

Calls 1

normalizeLocaleFunction · 0.85

Tested by

no test coverage detected