# Intlayer svelte

> Intlayer svelte is an open-source agent skill for developer tools. Adds Intlayer i18n to Svelte and SvelteKit apps with per-component content files. 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-svelte
- **Repository:** https://github.com/aymericzip/intlayer
- **GitHub stars:** 869
- **License:** Apache-2.0
- **Skill name:** intlayer-svelte
- **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 adding Intlayer internationalization to Svelte and SvelteKit projects. Content is declared in dictionary files placed next to the components that use them, instead of one large global translation file. A translated component is built from two pieces: a content file that defines the strings per locale, and a Svelte component that reads them through the useIntlayer store.

The skill explains how to access values from the store with the dollar prefix, and how to pull plain strings when needed. It also covers bundle optimization rules, such as reading fields by name so the build can trim unused content, and avoiding runtime indexing into dictionaries. Setup guidance is split into Vite with Svelte, SvelteKit, and Astro with Svelte environments, and reference notes cover variants, collections, formatters, and the optional Intlayer compiler for extracting keys.

The agent is expected to work in a Svelte or SvelteKit codebase and to install the Intlayer packages for the chosen environment. The compiler for .svelte files needs an additional package.

## When your agent uses it

> Integrates Intlayer internationalization with Svelte and SvelteKit applications. Use when the user asks to "setup Svelte i18n", create a new translated component, use the "useIntlayer" store, or configure providers.

## 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-svelte)
- [License: Apache-2.0](https://github.com/aymericzip/intlayer/tree/HEAD/.agents/skills/intlayer-svelte)

## Features

- **Component-level content files:** Shows how to declare translations in dictionary files stored beside each component.
- **useIntlayer store usage:** Explains reading translated values from the Svelte store with the dollar prefix.
- **Vite and SvelteKit setup:** Covers configuring Intlayer for Vite with Svelte and for SvelteKit projects.
- **Bundle size optimization:** Describes access patterns that let the build purge and minify unused dictionary content.
- **Optional key extraction compiler:** Describes the Intlayer compiler that extracts content keys via CLI or at build time.
- **Formatters and variants reference:** Links to reference notes on formatters, variants and collections for localized output.

## Good for

- Set up internationalization in a new SvelteKit project
- Create a translated Svelte component with English, French and Spanish text
- Convert hardcoded strings in a Svelte component into Intlayer content
- Configure Intlayer with Vite and Svelte
- Enable the Intlayer compiler to extract content keys

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/intlayer-svelte` 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-svelte &&
cp -R "$tmp/.agents/skills/intlayer-svelte" ~/.claude/skills/intlayer-svelte &&
rm -rf "$tmp"
```

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

### Codex

Copy the skill folder to `~/.agents/skills/intlayer-svelte` 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-svelte &&
cp -R "$tmp/.agents/skills/intlayer-svelte" ~/.agents/skills/intlayer-svelte &&
rm -rf "$tmp"
```

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

### Cursor

Copy the skill folder to `~/.cursor/skills/intlayer-svelte` 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-svelte &&
cp -R "$tmp/.agents/skills/intlayer-svelte" ~/.cursor/skills/intlayer-svelte &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/intlayer-svelte` 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-svelte
```

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

### VS Code

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

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

For one project only, put the folder in `.github/skills/intlayer-svelte` 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-svelte` into your agent's skills folder as `intlayer-svelte`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Intlayer svelte trigger?

It is meant for requests such as setting up Svelte i18n, creating a new translated component, using the useIntlayer store, or configuring providers.

### What does a translated component need?

Two files: a content file that defines the dictionary with t() translations, and a Svelte component that uses the useIntlayer store to read it.

### Does the compiler work with .svelte files out of the box?

No. The compiler needs compiler.enabled and compiler.output set, and .svelte files additionally require the @intlayer/svelte-compiler package.

### Which Svelte environments are covered?

Vite with Svelte, SvelteKit, and Astro with Svelte are each covered by a separate reference note.

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

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

### Does Intlayer svelte 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 svelte?

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 svelte?

The closest alternatives to Intlayer svelte are Intlayer vanilla, Intlayer vue, Intlayer react, Intlayer solid and Intlayer lit.

## Where this comes from

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

## Alternatives

- [Intlayer vanilla](https://ai-powered.com/skills/intlayer-vanilla): Intlayer vanilla is an open-source agent skill for developer tools.
- [Intlayer vue](https://ai-powered.com/skills/intlayer-vue): Intlayer vue is an open-source agent skill for developer tools.
- [Intlayer react](https://ai-powered.com/skills/intlayer-react): Intlayer react is an open-source agent skill for developer tools.
- [Intlayer solid](https://ai-powered.com/skills/intlayer-solid): Intlayer solid 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 compiler](https://ai-powered.com/skills/intlayer-compiler): Intlayer compiler 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-svelte
