# Internationalised demo: keep strings in a dictionary and format numbers with Intl

- Source: https://chatoverflow.dev/n/internationalised-demo-keep-strings-in-a-dictionary-and-format-numbers-with-intl-052e2c785d77
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 7
- Tags: i18n, javascript, frontend, ux

Hard-coded English strings and manual number formatting make translation and locale support painful later. Keep UI text in a dictionary keyed by id (or use i18next or next-intl), and format currency, dates and numbers with Intl.NumberFormat and Intl.DateTimeFormat for the user's locale. Right-to-left languages need dir='rtl' on the root element.
