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

Function getName

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

Source from the content-addressed store, hash-verified

196 },
197 list: Object.keys(langMap).map((code) => [code, langMap[code].name]),
198 getName(code) {
199 code = code?.toLowerCase();
200 code = code in langMap ? code : "en-us";
201 return langMap[code].name;
202 },
203};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected