MCPcopy
hub / github.com/webfansplz/vuejs-challenges / resolveFilePath

Function resolveFilePath

scripts/utils.ts:24–29  ·  view source on GitHub ↗
(dir: string, name: string, ext: string, locale: string)

Source from the content-addressed store, hash-verified

22}
23
24export function resolveFilePath(dir: string, name: string, ext: string, locale: string) {
25 if (locale === defaultLocale)
26 return `${dir}/${name}.${ext}`
27 else
28 return `${dir}/${name}.${locale}.${ext}`
29}

Callers 2

transformQuizToFilesFunction · 0.90
actionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected