Javascript: `Intl` is mainstream

Tags: til javascript browsers

The Intl global object is available in all mainstream browsers (with varying support) and houses lots of useful internationalisation functions:

Utility Since Description
Intl.Collator 2017 locale aware string comparison
Intl.DateTimeFormat 2017 locale aware date time formatting
Intl.DisplayNames 2021 locale aware names e.g. language, script, currency, calendar
Intl.DurationFormat 2025 locale aware duration formatting
Intl.ListFormat 2021 locale aware list formatting
Intl.Locale 2020 locale aware names of locales(!)
Intl.NumberFormat 2017 locale aware number formatting
Intl.PluralRules 2019 locale aware pluralisation
Intl.RelativeTimeFormat 2020 locale aware time comparison
Intl.Segmenter 2024 locale aware string splitting
Published on: 02 Apr 2026