MCPcopy
hub / github.com/Comfy-Org/ComfyUI_frontend / t

Function t

apps/website/src/i18n/translations.ts:5003–5005  ·  view source on GitHub ↗
(key: TranslationKey, locale: Locale = 'en')

Source from the content-addressed store, hash-verified

5001type LocalizedText = Record<Locale, string>
5002
5003export function t(key: TranslationKey, locale: Locale = 'en'): string {
5004 return translations[key][locale] ?? translations[key].en
5005}
5006
5007export const translationKeys = Object.keys(translations) as TranslationKey[]
5008

Callers 15

getMainNavigationFunction · 0.90
inferBlockTypeFunction · 0.90
heroSectionFunction · 0.90
ctaSectionFunction · 0.90
dropsSectionFunction · 0.90
launches.spec.tsFile · 0.90
demos.spec.tsFile · 0.90
affiliates.spec.tsFile · 0.90
uninstallPackFunction · 0.90
disablePackFunction · 0.90

Calls

no outgoing calls

Tested by 3

heroSectionFunction · 0.72
ctaSectionFunction · 0.72
dropsSectionFunction · 0.72