Blocks/Internationalization
IntermediateUtility

Internationalization

Locale routing + RTL + currency formatting

Full i18n with next-intl 3.x: locale detection, URL-based routing, RTL support for Arabic, INR/USD auto-conversion for Hindi locale, relative time formatting, complete message files for all 5 languages (EN, FR, DE, HI, AR — every key translated), LanguageSwitcher component, and middleware/config templates.

8h
Time saved
427
Lines of code
100%
TypeScript
#i18n#localization#rtl#next-intl

Dependencies

next-intl

Code preview

blocks/i18n/index.ts
1formatPrice(19, 'hi', 'USD') var(--text-3);font-style:italic">// → ₹1,596
2formatPrice(19, 'fr', 'USD') var(--text-3);font-style:italic">// → 19 $
3formatDate(new Date(), 'ar') var(--text-3);font-style:italic">// → ١٦ مارس ٢٠٢٦
4
5var(--text-3);font-style:italic">// All 5 locales, RTL for Arabic, URL routing built-in

Short excerpt. Full block includes SQL migrations, error handling, RLS policies, and complete file structure.

$19

One-time · Instant GitHub access

Instant GitHub repo access

Own the code forever

Free updates

You might also like