FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
Internationalization with Claude Code: next-intl, Type-Safe Translations, and RTL Support
How-ToWeb Development

Internationalization with Claude Code: next-intl, Type-Safe Translations, and RTL Support

via Dev.tomyougaTheAxo3w ago

Adding i18n after the fact means hunting down every hardcoded string, rebuilding every date format, and retrofitting every layout for RTL. It's a full rewrite disguised as a feature. Claude Code, with CLAUDE.md rules defined upfront, generates proper i18n architecture from the first line of code. Here's the exact setup. Step 1: Define i18n Rules in CLAUDE.md ## Internationalization Rules - All UI strings via i18n keys — no hardcoded text in components - Dates via `Intl.DateTimeFormat` or `date-fns/locale` (not `.toLocaleDateString()` ) - Currency via `Intl.NumberFormat` with explicit currency code - Plurals via ICU Message Format: `{count, plural, =0 {...} =1 {...} other {...}}` - Message files: `messages/[lang]/[namespace].json` , camelCase keys - TypeScript type-safe translations via next-intl - RTL layout: use `margin-inline-start/end` , `border-inline-*` , `text-align: start` - `dir="rtl"` on `<html>` for Arabic/Hebrew/Persian locales Step 2: Message Files with ICU Plurals messages

Continue reading on Dev.to

Opens in a new tab

Read Full Article
18 views

Related Articles

Week 6 — No New Problems. Just Me and Everything I Already Learned.
How-To

Week 6 — No New Problems. Just Me and Everything I Already Learned.

Medium Programming • 4d ago

What OpenClaw Gets Wrong Out of the Box (And How to Fix It)
How-To

What OpenClaw Gets Wrong Out of the Box (And How to Fix It)

Medium Programming • 4d ago

Android Remote Compose:讓 Android UI 不用發版也能更新
How-To

Android Remote Compose:讓 Android UI 不用發版也能更新

Medium Programming • 4d ago

How-To

Learn Something Old Every Day, Part XVIII: How Does FPU Detection Work?

Lobsters • 5d ago

“Learn to Code” Is Dead… Learn to Think Instead
How-To

“Learn to Code” Is Dead… Learn to Think Instead

Medium Programming • 5d ago

Discover More Articles