1. 5
    Formatting Lists of Items With the Intl Javascript API
    1m 58s

Formatting Lists of Items With the Intl Javascript API

Share this video with your friends

Send Tweet

Displaying a list is one of the most used ways to showcase information in a web app. But since your users speak different languages you need a way to format the list based on that language convention.

To avoid the hassle of implementing these formatting rules by hand - that could be really hard - Intl offers the ListFormat API.

What this formatter does is basically join an array of strings with the correct conjunction or disjunction to create a meaningful phrase.