Resources · 110

Localized input: resolve number and date ambiguity

Accept and confirm values without silently changing separators, units or date order.

· 2 min

Smartphone and laptop on a table Illustration · fictional scene

What this guide helps achieve

  • Define accepted formats
  • Retain raw input
  • Confirm the interpreted value
  • Test interactions
  • Align export and storage

Quick check

  • Does Intl.NumberFormat parse input?
  • Should every notation be accepted?

Step-by-step method

  1. 01

    Define accepted formats

    List locale, unit, precision and examples. Separate accepted input from displayed output; a formatting library is not automatically an input parser.

    Deliverable: formats and interpretation.

  2. 02

    Retain raw input

    Preserve the entry until validation. Test commas, points, grouping spaces and paste; when multiple readings are possible, ask for clarification instead of inventing intent.

    Deliverable: ambiguous cases and resolution rules.

  3. 03

    Confirm the interpreted value

    Show unit, unambiguous date and interpreted amount before consequential actions. Avoid confirmation that merely repeats an ambiguous string without explaining its interpretation.

    Deliverable: explicit confirmation screen.

  4. 04

    Test interactions

    Check mobile keyboards, screen readers, errors and input recovery. Do not rely on colour for explanations; keep the error associated with its field.

    Deliverable: entry and correction acceptance.

  5. 05

    Align export and storage

    Send a normalised value with unit and applied rule. Check exports, redisplay and locale changes; retain useful corrections without unnecessary sensitive data.

    Deliverable: verified round trip.

Choose validation or clarification

Check the observed state before choosing next steps.

  1. One permitted interpretation

    Confirm value, unit and format.

  2. Multiple plausible readings

    Ask for clarification without erasing input.

  3. Rejected format

    Explain the error and offer accessible correction.

Reusable worksheet

Complete with your authorised observations. These fields are a working template, not observed results.

FieldInformation to record
InputRaw string and locale
InterpretationValue, unit and rule
AcceptanceDisplay, correction and export

Worked example

Illustrative situation

Illustrative case: 1,234 can be interpreted differently under different expected conventions. Repeating 1,234 does not confirm its meaning.

Decision and expected evidence

Show a unit and explicit representation of the interpreted value, or ask the user to clarify before approval.

Distinguish the mechanisms

MechanismPurposeCheck or limitation
InputUser-provided stringMay be ambiguous
InterpretationUnderstood value and unitMust be confirmable
DisplayLocal presentationDoes not prove correct parsing

Management indicators

IndicatorWhat it measuresFirst action
AmbiguityCases clarified before actionCorrect silent conversions
Round tripValues preserved through export and returnInspect incompatible formats

Common pitfalls

  • Confuse formatting and input parsing
  • Convert ambiguity without confirmation
  • Erase input on error

Frequently asked questions

Does Intl.NumberFormat parse input?

It formats values. Define and test parsing rules for your field separately.

Should every notation be accepted?

Choose a clear contract for served languages and uses. Reject or clarify ambiguity without erasing input.

Official references

References consulted: . The method and worksheet propose checks to adapt to your context; they do not constitute certification.