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

Function t

scripts/locales.ts:15–17  ·  view source on GitHub ↗
(locale: SupportedLocale, key: string)

Source from the content-addressed store, hash-verified

13export type SupportedLocale = keyof typeof messages
14
15export function t(locale: SupportedLocale, key: string): string {
16 return (messages[locale] && messages[locale][key]) || messages[defaultLocale][key]
17}
18
19export function f(name: string, locale: string, ext: string) {
20 if (locale === defaultLocale)

Callers 4

generateDifficultyBadgeFunction · 0.90
insertInfoToREADMEFunction · 0.90
actionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected