MCPcopy
hub / github.com/infinitered/ignite / translate

Function translate

boilerplate/app/i18n/translate.ts:28–33  ·  view source on GitHub ↗
(key: TxKeyPath, options?: TOptions)

Source from the content-addressed store, hash-verified

26 * ```
27 */
28export function translate(key: TxKeyPath, options?: TOptions): string {
29 if (i18n.isInitialized) {
30 return i18n.t(key, options)
31 }
32 return key
33}

Callers 15

EmptyStateFunction · 0.90
Text.tsxFile · 0.90
TextField.tsxFile · 0.90
HeaderFunction · 0.90
HeaderActionFunction · 0.90
useEpisodeFunction · 0.90
DemoPodcastListScreenFunction · 0.90
EpisodeCardFunction · 0.90
DemoUseCaseFunction · 0.90
DemoShowroomScreenFunction · 0.90
DemoListItem.tsxFile · 0.90
DemoText.tsxFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected