Courses / JavaScript
99. Intl API basics
Using ECMAScript Internationalization APIs for formatting numbers, dates, and strings.
JavaScript
Intl API basics
A set of built-in objects for formatting numbers, dates, times, and comparing strings according to locale rules.
"I want dates, currencies and names to look correct for users around the world without writing locale logic myself."
The Intl API provides constructors like Intl.NumberFormat, Intl.DateTimeFormat, and Intl.Collator that apply locale-aware formatting and comparison rules so you can present data correctly for different regions and languages.
"I want dates, currencies and names to look correct for users around the world without writing locale logic myself."
The Intl API provides constructors like Intl.NumberFormat, Intl.DateTimeFormat, and Intl.Collator that apply locale-aware formatting and comparison rules so you can present data correctly for different regions and languages.