Lock in $30 Savings on PRO—Offer Ends Soon! ⏳

JavaScript Apps Go Intl - GIDS Live 2021

JavaScript Apps Go Intl - GIDS Live 2021

In a connected, global world there are a surprising number of problems with formatting text for our users. Did you know how many different ways there are to format a number? Or pluralise a noun? Or display a date? And let's not get into doing time zone maths for those dates. Internationalising an app by hand, and doing it correctly, could be a never-ending, full-time job.

The Intl namespace is home to the ECMAScript Internationalization API and contains the solutions to many of our formatting problems. In this talk we'll explore the available APIs that can make it easier to build a truly international application.

With Intl we can build apps that cater to all our users, wherever they are, however they write things down.

--

Links:

MDN on Intl: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl

How to display dates in your user's time zone with the Intl API: https://philna.sh/blog/2021/02/22/display-dates-in-your-users-time-zone/

<time-formatter> Web Component: https://github.com/philnash/time-formatter/

Phil Nash

April 29, 2021
Tweet

More Decks by Phil Nash

Other Decks in Programming

Transcript