
I told my AI agent "internationalize this" and it actually did it
I've set up i18n in Next.js App Router projects more times than I'd like to admit. It's always the same: middleware config, a pile of JSON files, wiring up the provider, copy-pasting keys between locales, discovering at 11pm that common.heor.title returns undefined in production. The last time it happened I was mass-translating 40+ keys across 5 languages by hand. I stopped halfway through and thought: why am I still doing this manually? So I built i1n , an open source CLI (MIT) that pushes your translation keys and gets them back translated with full TypeScript types. Free tier, no credit card, no 14-day trial tricks. Let me walk you through the setup. Prerequisites A Next.js project (App Router or Pages Router) Node.js 18+ ~5 minutes Step 1: Install and init npm install -g i1n i1n init It'll ask for an API key (you can grab one at i1n.ai , Google or GitHub login). After that it detects your framework and sets up the locale directory automatically. Step 2: Write your source strings lo
Continue reading on Dev.to Webdev
Opens in a new tab




