LongLink Runtime Concepts

count

Definition

Passes a numeric count into an ICU plural translation.

Usage

Use count with i18n messages that contain plural branches.

Rules

  • count required. Expression coerced to a number and exposed to ICU as count.
  • values.count. The runtime count is merged into values for the translation call.
  • non-numeric values. Values that cannot become numbers are ignored for plural selection.

Example

xml
<Text i18n="orders.count" count="${orders.items.length}" />