Skip to content

Solid: Trans

Functions, types, and exports for Solid: Trans.

Page outline

Parser-free Trans component used by transformed production code.

import { Trans } from "@palamedes/solid"

<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, RichTextComponent>No

Props type: TransProps

Source entry on GitHub

Last updated: November 14, 2026