astro-i18n
SolidUse when implementing i18n in Astro — locale routing strategies, getRelativeLocaleUrl/getAbsoluteLocaleUrl, Astro.currentLocale, or hreflang with sitemap.
Web & Frontend 25 stars
4 forks Updated 6 days ago MIT
Install
Quality Score: 87/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
<objective>
Implements Astro's built-in i18n system (Astro 3.5+): file-based locale routing under `src/pages/[locale]/`, `defaultLocale` and routing-strategy configuration (prefix-always vs prefix-other-locales), URL helper functions from `astro:i18n` (`getRelativeLocaleUrl`, `getAbsoluteLocaleUrl`), reading `Astro.currentLocale` in components, and fallback-locale configuration to avoid 404s on missing translations.
Also covers translating Content Collections per locale and adding `hreflang` alternate links via `@astrojs/sitemap`'s `i18n` option for SEO. Does not cover general SEO meta tags beyond hreflang (astro-seo) or the Content Layer API itself (astro-content) — this skill focuses specifically on locale routing and URL generation.
</objective>
# Astro i18n
## Agent Workflow (MANDATORY)
Before ANY implementation, spawn 3 agents in parallel, one `Agent` call each with a `name`:
1. **fuse-ai-pilot:explore-codebase** - Analyze existing routing, content collections, and locale files
2. **fuse-ai-pilot:research-expert** - Verify latest Astro i18n docs via Context7/Exa
3. **mcp__context7__query-docs** - Check `astro:i18n` API and sitemap integration
After implementation, run **fuse-ai-pilot:sniper** for validation.
---
## Overview
### When to Use
- Building multilingual Astro sites with locale-prefixed URLs
- Configuring `defaultLocale` and routing strategies
- Generating locale-aware links with `getRelativeLocaleUrl()`
- Reading `Astro.currentLocale` in components an...
Details
- Author
- fusengine
- Repository
- fusengine/agents
- Created
- 8 months ago
- Last Updated
- 6 days ago
- Language
- CSS
- License
- MIT
Similar Skills
Semantically similar based on skill content — not just same category
Web & Frontend Solid
astro-seo
Use when optimizing SEO for an Astro site — meta tags, Open Graph, JSON-LD structured data, sitemap/RSS, canonical URLs, hreflang, Core Web Vitals.
25 Updated 6 days ago
fusengine Web & Frontend Solid
astro-integrations
Use when adding React, Vue, Svelte, Solid, Preact, or another UI framework to an Astro project via @astrojs/* integrations.
25 Updated 6 days ago
fusengine Web & Frontend Solid
astro-content
Use when managing structured content, blog posts, or typed data collections in Astro via the Content Layer API (content.config.ts).
25 Updated 6 days ago
fusengine