astro-i18n

Installation
SKILL.md

Astro i18n Skill

Purpose

Provides internationalization patterns for lead generation sites targeting multiple markets/languages. Implements URL-based routing (/en/, /de/, /fr/), translation management, SEO optimization with hreflang tags, and RTL support.

Core Rules

  1. URL structure first/en/, /de/, /fr/ prefixes for SEO and user clarity
  2. Fallback gracefully — Missing translations default to primary language with console warning
  3. hreflang tags — Required on every page for proper language alternates
  4. RTL support — Use logical CSS properties (margin-inline-start) for Arabic/Hebrew
  5. Persist preference — Store user's language choice in localStorage/cookie
  6. Type-safe translations — Use TypeScript for language codes and translation keys
  7. No hardcoded text — All user-facing strings must come from translation files
  8. SEO metadata — Translate title, description, og:locale for each language
  9. Content parity — Each language should have equivalent content structure
  10. Intl API formatting — Use native Intl for dates, numbers, currency per locale
Related skills
Installs
11
GitHub Stars
4
First Seen
Jan 29, 2026