/fuse-astro:astro-i18nfrom fuse-astro
Implements Astro's built-in i18n system: locale routing, URL helpers (getRelativeLocaleUrl/getAbsoluteLocaleUrl), Astro.currentLocale, and hreflang sitemap integration.
Ships in fuse-astro. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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.
Before ANY implementation, spawn 3 agents in parallel, one Agent call each with a name:
astro:i18n API and sitemap integrationAfter implementation, run fuse-ai-pilot:sniper for validation.
defaultLocale and routing strategiesgetRelativeLocaleUrl()Astro.currentLocale in components and pageshreflang alternate links via @astrojs/sitemapAstro's built-in i18n system provides:
src/pages/[locale]/astro:i18n| Topic | Reference | When to Consult |
|---|---|---|
| Routing config | routing-config.md | Setup and config options |
| Strategies | strategies.md | prefix-always vs prefix-other-locales |
| Helper functions | helper-functions.md | getRelativeLocaleUrl and all helpers |
| Content translation | content-translation.md | Translating content collections |
| Sitemap hreflang | sitemap-hreflang.md | SEO alternate links |
| Fallback | fallback.md | Missing translation fallback |
| Template | When to Use |
|---|---|
| i18n-config.md | Full i18n configuration |
| locale-page.md | Page component with locale awareness |
| language-switcher.md | Language switcher component |
getRelativeLocaleUrl() — never hardcode locale prefixes in linksAstro.currentLocale — read locale in components, not from URL manuallysrc/content/[type]/[locale]/@astrojs/sitemap with i18n option for SEOfallback to prevent 404s for missing translationsAstro.currentLocale)getRelativeLocaleUrl without configuring site in Astro configreferences/content-translation.md (opens in a new tab)references/fallback.md (opens in a new tab)references/helper-functions.md (opens in a new tab)references/routing-config.md (opens in a new tab)references/sitemap-hreflang.md (opens in a new tab)references/strategies.md (opens in a new tab)references/templates/i18n-config.md (opens in a new tab)references/templates/language-switcher.md (opens in a new tab)references/templates/locale-page.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
14 skills in this plugin
/astro-7Use when building Astro 7 sites, choosing an output mode (static/server, hybrid via per-route prerender), configuring middleware, or upgrading from Astro 5/6./astro-actionsUse when handling form submissions, mutations, or server-side logic with type safety in Astro via defineAction / astro:actions./astro-assetsUse when optimizing images or other assets in Astro — <Image />, <Picture />, getImage(), Fonts API, or OG image generation./astro-contentUse when managing structured content, blog posts, or typed data collections in Astro via the Content Layer API (content.config.ts)./astro-dbUse when doing database operations in an Astro project via Astro DB (defineDb, defineTable, db/config.ts, Turso)./astro-deploymentUse when deploying an Astro 7 app to Cloudflare, Vercel, Netlify, or Node.js — adapter setup, ISR patterns, edge middleware.npx claudepluginhub fusengine/claude-plugins --plugin fuse-astroOther plugins' skills for the same job