MCPcopy
hub / github.com/tolgee/tolgee-platform / t

Function t

email/components/translate.ts:200–219  ·  view source on GitHub ↗
(
  key: string,
  defaultString: string,
  demoParams?: Record<string, unknown>
)

Source from the content-addressed store, hash-verified

198}
199
200export default function t(
201 key: string,
202 defaultString: string,
203 demoParams?: Record<string, unknown>
204) {
205 const { fragments, text, messageExpression } = renderTranslatedText(
206 key,
207 defaultString,
208 demoParams
209 );
210
211 return [
212 ...fragments,
213 React.createElement(
214 'span',
215 { key: 'render-el', 'th:utext': messageExpression },
216 addBrToTranslations(text)
217 ),
218 ];
219}
220
221t.raw = function (
222 key: string,

Callers 15

MfaBadgeFunction · 0.85
HelpMenuFunction · 0.85
EmailNotVerifiedViewFunction · 0.85
LinkReadMoreFunction · 0.85
AutoTranslationIconFunction · 0.85
NamespaceSelectorFunction · 0.85
NamespaceNewDialogFunction · 0.85
SecondaryBarSearchFieldFunction · 0.85
withTooltipFunction · 0.85
BottomLinksFunction · 0.85
QuickStartFinishStepFunction · 0.85

Calls 2

renderTranslatedTextFunction · 0.85
addBrToTranslationsFunction · 0.85

Tested by

no test coverage detected