LongLink Runtime Concepts

i18n

Definition

Looks up visible copy from the active XML translation catalog.

Usage

Use i18n on text-bearing elements instead of hardcoding visible copy in page XML.

Rules

  • i18n required. Literal dotted translation key such as orders.title. It is not an expression.
  • values. Optional expression object for ICU message interpolation.
  • count. Optional numeric expression supplied to ICU plural messages.

Example

xml
<Heading level="1" i18n="orders.title" />
<Text as="p" i18n="orders.summary" values="${{ customer: order.customer }}" />