LongLink Runtime Concepts
Translations
Definition
Defines localized XML page copy in flat catalog files under src/i18n.
Usage
Keep visible copy in translation catalogs and reference it from XML with i18n keys.
Rules
location. Catalog files live under src/i18n, such as src/i18n/en.json.shape. Each dotted key maps to an object with defaultMessage and optional description.generator. Run longlink translations generate after adding or renaming XML keys.
Example
xml{"orders.title": {"defaultMessage": "Orders"},"orders.count": {"defaultMessage": "{count, plural, =0 {No orders} one {# order} other {# orders}}"}}