Skip to content

React: Trans

Functions, types, and exports for React: Trans.

Page outline
import { Trans } from "@palamedes/react"

<Trans id={…} />

Props

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

Props type: TransProps

Source entry on GitHub

Last updated: November 1, 2026