Перейти к основному содержимому

Messages (Paraglide JS, ICU, compile-time)

Generated from mcp/patterns.registry.json — do not edit by hand; change the registry and run bun run patterns:build.

Index card — the docs below are the canonical explanation; deep-tier pattern pages additionally carry invariants and emulation notes.

Category: Internationalization (i18n) · Tier: light · Risk: low — build-time compiled output, no runtime service

Compile-time translated messages via Paraglide JS v2 using ICU MessageFormat, authored as per-language JSON files that compile to typed functions.

When to use: Use when adding or editing any user-facing translatable string.

Docs

Code

  • messages/ — generated src/lib/paraglide/ is gitignored (GitHub · GitLab)

Proof


Machine-readable record: i18n-messages in mcp/patterns.registry.json.

← Back to Pattern Library

Думаете, этот паттерн можно сделать лучше? Расскажите как.

Оставить отзыв