Skip to content

Solid: Trans

Trans component (Solid)

Usage

<Trans
  id={string}
  message?={string}
  context?={string}
  comment?={string}
  values?={Record<string, unknown>}
  components?={Record<string, RichTextComponent>}
/>

Props

PropTypeRequiredDescription
idstringYesCompiled lookup key injected by the transform.
messagestringNoAuthored source message, kept only as diagnostic metadata.
contextstringNo-
commentstringNo-
valuesRecord<string, unknown>No-
componentsRecord<string, RichTextComponent>No-

Source