MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / t

Function t

popup/helpers/lang.js:29–40  ·  view source on GitHub ↗
(o)

Source from the content-addressed store, hash-verified

27}
28
29export function t(o) {
30 if (typeof o === "string") return o;
31 if (typeof o === "object") {
32 for (let key of [currentLangKey, ...LANG_KEY]) {
33 if (key in o && o[key] != "") {
34 return o[key];
35 }
36 }
37 }
38
39 return "?";
40}

Callers 1

checkForUpdateFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected