MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / set

Function set

src/lib/lang.js:191–196  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

189
190export default {
191 async set(code) {
192 code = code?.toLowerCase();
193 const lang = langMap[code] || langMap["en-us"];
194 const strings = await lang.strings();
195 window.strings = strings.default;
196 },
197 list: Object.keys(langMap).map((code) => [code, langMap[code].name]),
198 getName(code) {
199 code = code?.toLowerCase();

Callers 1

editorFile.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected