MCPcopy Create free account
hub / github.com/anomalyco/opencode / fix

Function fix

packages/console/app/src/lib/language.ts:27–30  ·  view source on GitHub ↗
(pathname: string)

Source from the content-addressed store, hash-verified

25export const LOCALE_HEADER = "x-opencode-locale" as const
26
27function fix(pathname: string) {
28 if (pathname.startsWith("/")) return pathname
29 return `/${pathname}`
30}
31
32const LABEL = {
33 en: "English",

Callers 4

suffixFunction · 0.70
fromPathnameFunction · 0.70
fromDocsPathnameFunction · 0.70
stripFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected