Intl.ListFormat Playground

Mr. Tono’s shopping goes on the receipt as one sentence: the real Intl.ListFormat builds it per language, formatToParts shows the joins, and you can try…

Why it matters

Lists are everywhere: tags, authors, categories, "sent to A, B, and 3 others". Building them yourself means a missing connecting word, a wrong Oxford comma, and a "dan" left behind when the app is translated. ListFormat writes them right for every language.

The key idea

The connecting words and the commas belong to the language, not to your code

Common mistakes

Try it in this playground