# Intlayer compiler

> Intlayer compiler is an open-source agent skill for developer tools. Sets up Intlayer to extract translatable strings from components automatically. 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-compiler
- **Repository:** https://github.com/aymericzip/intlayer
- **GitHub stars:** 869
- **License:** Apache-2.0
- **Skill name:** intlayer-compiler
- **Collection:** https://github.com/aymericzip/intlayer
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill walks an agent through configuring the Intlayer compiler so that translatable strings written inline in components are pulled out into dictionaries without hand-written .content files. It covers setup for Vite, Next.js, Babel and Webpack projects, and points to reference documents for each bundler.

The guidance maps each build setup to its package: the Vite plugin from vite-intlayer, the Babel loader for Next.js through withIntlayer, and the intlayerExtractBabelPlugin for Babel or Webpack. Vue and Svelte single-file components need additional compiler packages. Projects on an unsupported bundler can run the intlayer extract command instead.

The skill expects a JavaScript or TypeScript frontend project using one of the supported frameworks and bundlers, with the Intlayer packages installed.

## When your agent uses it

> Intlayer Compiler setup and usage. Configures automatic content extraction for your components without the need to define .content files manually.

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

## Features

- **Automatic content extraction:** Covers how strings written inline in components are turned into generated dictionaries.
- **Vite plugin setup:** Explains enabling the compiler through the intlayer plugin in vite-intlayer.
- **Next.js configuration:** Describes wiring the extractor loader into Next.js via withIntlayer on Turbopack and webpack.
- **Babel and Webpack setup:** Shows adding the intlayerExtractBabelPlugin from @intlayer/babel to a build.
- **Vue and Svelte support:** Notes the extra compiler packages needed for .vue and .svelte files.
- **CLI extraction fallback:** Covers running npx intlayer extract when no supported bundler is used.

## Good for

- Set up Intlayer compiler in a Vite React app
- Enable automatic i18n extraction in a Next.js project
- Add the Babel extract plugin to a Webpack build
- Configure Intlayer for a Vue or Svelte component library

## Install

### Claude Code

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

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

### Codex

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

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

### Cursor

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

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

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

### VS Code

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

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

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

## FAQ

### Which bundlers does Intlayer compiler cover?

Vite, Next.js, Babel and Webpack are covered, with a CLI fallback for other setups.

### Do I still need to write .content files?

No. Once the compiler plugins are configured, translatable strings are written inline and dictionaries are generated automatically.

### What extra packages are needed for Vue or Svelte?

Vue files require @intlayer/vue-compiler and Svelte files require @intlayer/svelte-compiler.

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

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

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

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

The closest alternatives to Intlayer compiler are Intlayer svelte, Intlayer vue, Intlayer vanilla, Intlayer react and Intlayer preact.

## Where this comes from

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

## Alternatives

- [Intlayer svelte](https://ai-powered.com/skills/intlayer-svelte): Intlayer svelte 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 vanilla](https://ai-powered.com/skills/intlayer-vanilla): Intlayer vanilla 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 preact](https://ai-powered.com/skills/intlayer-preact): Intlayer preact 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 usage](https://ai-powered.com/skills/intlayer-usage): Intlayer usage 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.

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