# Intlayer astro

> Intlayer astro is an open-source agent skill for developer tools. Adds Intlayer internationalization to Astro sites with server-side translated content. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/aymericzip/intlayer/tree/main/.agents/skills/intlayer-astro
- **Repository:** https://github.com/aymericzip/intlayer
- **GitHub stars:** 869
- **License:** Apache-2.0
- **Skill name:** intlayer-astro
- **Collection:** https://github.com/aymericzip/intlayer
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill guides an agent through wiring Intlayer into an Astro project. The Astro integration builds the content dictionaries and adds middleware that detects each request's locale and exposes it to pages and components.

Inside Astro components the agent is shown how to read dictionary content with the Astro helper hooks for the current locale, and how to pass locale-aware content to framework islands built with React, Vue, Svelte, Solid, Preact or Lit. It also covers bundle hygiene, such as reading fields by name rather than indexing content at runtime, and points to an extraction compiler that can find content keys in components.

The skill ships with reference files for Astro alone and for each supported framework pairing, plus notes on variants, collections and locale-aware formatters for numbers, currency and dates.

## When your agent uses it

> Integrates Intlayer internationalization with Astro applications. Use when the user asks to "setup Astro i18n", use "getIntlayer" in Astro components, or manage server-side content in Astro.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/aymericzip/intlayer/tree/HEAD/.agents/skills/intlayer-astro)
- [License: Apache-2.0](https://github.com/aymericzip/intlayer/tree/HEAD/.agents/skills/intlayer-astro)

## Features

- **Astro integration setup:** Covers adding the Intlayer integration to the Astro config so dictionaries are built and locales resolved per request.
- **Server-side content hooks:** Explains how to read dictionary content and the current locale inside Astro components.
- **Framework island support:** Describes passing server-detected locales into React, Vue, Svelte, Solid, Preact and Lit islands.
- **Bundle optimization rules:** Lists patterns that let the build purge unused dictionary fields, such as using select() instead of runtime indexing.
- **Key extraction compiler:** Describes the compiler that finds content keys in components via a CLI command or at build time.
- **Formatters and variants:** References locale-aware number, currency and date formatting plus content variants and collections.

## Good for

- Set up multilingual routing and locale detection in an Astro site
- Translate text in an Astro component using dictionary keys
- Share localized content with a React or Vue island in Astro
- Extract translation keys from existing components
- Format prices and dates per locale in Astro pages

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/intlayer-astro` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aymericzip/intlayer.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/intlayer-astro &&
cp -R "$tmp/.agents/skills/intlayer-astro" ~/.claude/skills/intlayer-astro &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/intlayer-astro` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/intlayer-astro` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aymericzip/intlayer.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/intlayer-astro &&
cp -R "$tmp/.agents/skills/intlayer-astro" ~/.agents/skills/intlayer-astro &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/intlayer-astro` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/intlayer-astro` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aymericzip/intlayer.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/intlayer-astro &&
cp -R "$tmp/.agents/skills/intlayer-astro" ~/.cursor/skills/intlayer-astro &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/intlayer-astro` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/aymericzip/intlayer.git --path .agents/skills/intlayer-astro
```

Or copy the folder to `~/.gemini/skills/intlayer-astro` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/intlayer-astro`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aymericzip/intlayer.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/intlayer-astro &&
cp -R "$tmp/.agents/skills/intlayer-astro" ~/.copilot/skills/intlayer-astro &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/intlayer-astro` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/aymericzip/intlayer.git
```

Then copy `intlayer/.agents/skills/intlayer-astro` into your agent's skills folder as `intlayer-astro`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to be set up?

It expects an Astro project where the intlayer() integration is added to astro.config.ts, and it uses the astro-intlayer package for the Astro hooks.

### Which parts of the app does Intlayer astro change?

It describes adding the integration, a middleware that resolves each request's locale into Astro.locals.intlayer, and component code that reads dictionary content.

### When does the skill trigger?

It is meant for requests such as setting up Astro i18n, using getIntlayer in Astro components, or managing server-side content in Astro.

### How do I install Intlayer astro in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/intlayer-astro to use it in all your projects, or to .claude/skills/intlayer-astro in one project.

### Does Intlayer astro run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Intlayer astro?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Intlayer astro?

The closest alternatives to Intlayer astro are Intlayer react, Intlayer angular, Intlayer backend, Intlayer svelte and Intlayer vanilla.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Intlayer react](https://ai-powered.com/skills/intlayer-react): Intlayer react is an open-source agent skill for developer tools.
- [Intlayer angular](https://ai-powered.com/skills/intlayer-angular): Intlayer angular is an open-source agent skill for developer tools.
- [Intlayer backend](https://ai-powered.com/skills/intlayer-backend): Intlayer backend is an open-source agent skill for developer tools.
- [Intlayer svelte](https://ai-powered.com/skills/intlayer-svelte): Intlayer svelte is an open-source agent skill for developer tools.
- [Intlayer vanilla](https://ai-powered.com/skills/intlayer-vanilla): Intlayer vanilla is an open-source agent skill for developer tools.
- [Intlayer lit](https://ai-powered.com/skills/intlayer-lit): Intlayer lit is an open-source agent skill for developer tools.
- [Intlayer usage](https://ai-powered.com/skills/intlayer-usage): Intlayer usage is an open-source agent skill for developer tools.
- [Intlayer preact](https://ai-powered.com/skills/intlayer-preact): Intlayer preact is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/intlayer-astro
