The browser APIs you're shipping libraries to replace with Kilian Valkhof

Your Host
Special Guest
Tags

About this Episode

Most developers reach for date-fns or Moment.js without realizing the browser already ships a powerful string formatting library called the JavaScript Intl API. Killian Valkhof, creator of Polypane, walks through how locale-aware date formatting, currency formatting, the Segmenter API, and the Collator API can replace heavy npm dependencies, with support for over 7,000 locales baked right into every evergreen browser since 2017.

Links

Resources

INTL: The best browser API you’re not using | Kilian Valkhof: https://www.youtube.com/watch?v=mhzJ1UFlRjw

We want to hear from you!

How did you find us? Did you see us on Twitter? In a newsletter? Or maybe we were recommended by a friend?

Fill out our listener survey! https://t.co/oKVAEXipxu

Let us know by sending an email to our producer, Elizabeth, at [email protected], or tweet at us at PodRocketPod.

Check out our newsletter! https://blog.logrocket.com/the-replay-newsletter/

Follow us. Get free stickers.

Follow us on Apple Podcasts, fill out this form, and we’ll send you free PodRocket stickers!

What does LogRocket do?

LogRocket provides AI-first session replay and analytics that surfaces the UX and technical issues impacting user experiences. Start understanding where your users are struggling by trying it for free at LogRocket.com. Try LogRocket for free today.

Chapters

00:00 Introduction — Browser APIs & the Intl API
01:00 Why Developers Overlook Internationalization
02:30 What the Intl API Actually Is (It's a Formatting Library)
04:00 7,000 Locales Built Into Every Browser
06:00 What Intl Does NOT Do — It's String Output Only
07:00 date-fns, Moment.js, Luxon, and Numeral.js Compared
09:00 Why the Segmented Rollout Slowed Adoption
11:00 Currency Formatting and Locale Trust Signals
13:00 The Worst Under-Used API in the Browser
16:00 How Browser Specs Have Evolved Since HTML5
18:30 Dialogue, Popover, Anchor Positioning — New Primitives
23:00 The Top Layer and Z-Index Problems Solved
25:00 WebGPU, WASM, and Native API Trends
27:30 The Easiest Way to Start Using Intl Today
31:00 Collator, Segmenter, and List Format APIs
32:00 Wrap-Up and Where to Find Killian's Full Talk