MCPcopy
hub / github.com/anomalyco/opencode / t

Function t

packages/app/src/utils/server-errors.test.ts:25–29  ·  view source on GitHub ↗
(key: string, vars?: Record<string, string | number>)

Source from the content-addressed store, hash-verified

23 }
24 return {
25 t(key: string, vars?: Record<string, string | number>) {
26 const text = dict[key]
27 if (!text) return key
28 return fill(text, vars)
29 },
30 }
31}
32

Callers 1

getRelativeTimeFunction · 0.70

Calls 1

fillFunction · 0.70

Tested by

no test coverage detected