WarUI

Locale-aware number and currency parsing

GRID-A24-F07P0beyond-baselinePlanned

Cell editors, paste handling and filter inputs read user input according to the active locale's decimal separator, grouping separator, digits and currency symbols. Ambiguous input is rejected with a message instead of being guessed. This closes the round trip between formatting and editing.

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

An editable price column, locale 'fr-FR', with a log panel showing parsed raw values.

Expected behavior

Valid input is stored as a number and redisplayed formatted. Input such as '1.234' under de-DE is read as 1234. Invalid input keeps the editor open and shows a translated error message.

Planned API surface

parseNumber(text, locale)column.valueParsereditor validation eventstrictParsing

Acceptance criteria

  • The parser uses separators derived from Intl.NumberFormat.formatToParts. (pending)
  • Native digits (Arabic-Indic, Devanagari) are accepted. (pending)
  • Currency symbols and percent signs are stripped according to the column type. (pending)
  • Strict mode rejects input that mixes separators from different locales. (pending)