Per-grid string overrides with interpolation
Applications can override any catalog key for a single grid instance and use named placeholders such as {count} or {column}. Overrides are merged on top of the active catalog. This supports domain wording, such as 'tickets' instead of 'rows', without forking a language pack.
Planned. This page shows the specification from issue #204. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A grid with localeText overriding three keys, including one that uses an interpolated placeholder.
Expected behavior
Edits to the JSON are applied live. Placeholders are filled with values that have been formatted for the current locale. When the locale changes, overrides that only target one locale stop applying.
Planned API surface
localeTextt(key, params)escapeInterpolationAcceptance criteria
- localeText takes precedence over all catalogs for the matching key. (pending)
- localeText can be keyed by locale or be locale-agnostic. (pending)
- Interpolated values are HTML-escaped by default. (pending)
- Unknown placeholders are left in the text unchanged and reported to onMissingTranslation. (pending)