تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

web-i18n-nextjs

بواسطة javainthinking

Web & Frontend Development
278التنزيلات وفق ما يذكره clawskills.sh
0المشاهدات
لا إعجاباتسجّل الدخول للإعجاب بهذه المهارة
—لم يُقيَّم بعد
تقييمك

موجز

Internationalization (i18n) guide for Next.js / Node.js web applications using the App Router.

الوصف

ما الذي تفعله هذه المهارة

A step-by-step guide for adding internationalization to Next.js App Router projects. Covers translation file structure, locale routing, SEO metadata per locale, hreflang tags, JSON-LD structured data, and multi-language sitemap generation. No hardcoded strings — every user-facing element is expected to support all configured locales.

Covers the full i18n surface area in one guide — routing, metadata, structured data, and sitemaps — so nothing gets missed when launching in a new language.

متى تستخدمها

  • Adding a new language to an existing Next.js site
  • Setting up hreflang tags for multi-region SEO
  • Translating page metadata and Open Graph fields per locale
  • Generating a sitemap that includes all locale variants
  • Wiring up a language switcher with correct URL prefixing

مثال على سير العمل

الإدخال

User asks: add Spanish support to my Next.js site

الوكيل
  1. 1

    Add 'es' to the locales array in src/lib/i18n/locales.ts

  2. 2

    Create src/app/[lang]/dictionaries/es.json with translated keys from en.json

  3. 3

    Register the new dictionary in the dictionaries.ts import map

  4. 4

    Add 'Español' to the LanguageSwitcher languageNames map

  5. 5

    Sync the sitemap locale list and redeploy the sitemap

الإخراج

Spanish pages available at /es/*, with correct hreflang alternates, translated metadata, and sitemap entries

التثبيت

clawhub install javainthinking/web-i18n-nextjs

شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.

الروابط