WarUI

Locale-aware number formatting

GRID-A24-F05P0baselinePlanned

Numeric columns are formatted with Intl.NumberFormat using the active or a per-column locale. This covers grouping, decimal separators, percent, compact and unit styles. Formatted values are used only for display; sort and filter work on the raw number.

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

Columns for quantity, ratio (percent), population (compact) and distance (unit km), locale 'en-US'.

Expected behavior

All number cells are reformatted live. Sorting a column still orders the values numerically.

Planned API surface

column.type='number'column.numberFormat (Intl.NumberFormatOptions)column.localevalueFormatter

Acceptance criteria

  • Formatting is done with Intl.NumberFormat and uses a cached formatter for each option set. (pending)
  • Column-level locale overrides grid-level locale. (pending)
  • Sorting and filtering use raw values. (pending)
  • Numeric cells are aligned to the end side by default. (pending)