From fuse-astro
Use when implementing internationalization in Astro, configuring i18n routing, setting up locale strategies, using getRelativeLocaleUrl/getAbsoluteLocaleUrl, handling Astro.currentLocale, or adding hreflang tags with sitemap.
How this skill is triggered — by the user, by Claude, or both
Slash command
/fuse-astro:astro-i18nThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Before ANY implementation, use `TeamCreate` to spawn 3 agents:
Before ANY implementation, use TeamCreate to spawn 3 agents:
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 confignpx claudepluginhub fusengine/agents --plugin fuse-astroNext.js 16 internationalization with next-intl or DIY. Use when implementing i18n, translations, localization, multilingual, language switch, locale routing, or formatters.
Plans multi-language/region site architecture: URL structure (subfolder vs subdomain vs ccTLD), hreflang, translation workflow, locale formatting, RTL design, and stalled rollout audits.
Comprehensive best practices, routing patterns, component architecture, and static site generation techniques for building high-performance Astro websites.