DEV Community

Cover image for How to debug i18n? 🤔
Michael Grechka
Michael Grechka

Posted on

How to debug i18n? 🤔

I've worked a lot with i18n in different projects (using i18next, next-intl, etc) and what I always lacked was a playground where I could debug the complex template strings.

It was really annoying to always check the result by refreshing the page, especially when the project is too heavy (like 🐌 🐌 🐌) to refresh instantly and you have to wait forever for the page to load after adding just a single missing bracket in the template string 😭.

🎉 Fortunately, I've made the i18n Playground, a tool where you can debug template strings with less effort as you can select a quick preset and forget about reading the docs over and over again. Currently, it only support messageformat which is commonly used across different i18n libraries. 💅🏻

Top comments (0)