MCPcopy
hub / github.com/chenyme/grok2api / t

Function t

app/statics/js/i18n.js:56–60  ·  view source on GitHub ↗
(k,p)

Source from the content-addressed store, hash-verified

54 }
55
56 function t(k,p){
57 var v=get(data,k); if(v===undefined) return k;
58 if(p) Object.keys(p).forEach(function(n){v=v.replace(new RegExp('\\{'+n+'\\}','g'),p[n]);});
59 return v;
60 }
61
62 function apply(root){
63 var c=root||document;

Callers 6

applyHeaderI18nFunction · 0.85
textFunction · 0.85
applyHeaderI18nFunction · 0.85
textFunction · 0.85
textFunction · 0.85
textFunction · 0.85

Calls 1

getFunction · 0.70

Tested by

no test coverage detected