# Intlayer vanilla

> Intlayer vanilla is an open-source agent skill for developer tools. Adds Intlayer i18n to plain JavaScript or TypeScript apps without a UI framework. 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-vanilla
- **Repository:** https://github.com/aymericzip/intlayer
- **GitHub stars:** 869
- **License:** Apache-2.0
- **Skill name:** intlayer-vanilla
- **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 internationalization into vanilla JavaScript or TypeScript projects, with no React, Vue or similar framework. Content is declared in per-module dictionary files placed next to the scripts that consume them, and the agent is shown how to read those values, update page text when the locale changes, and switch languages at runtime.

The instructions cover two setups: a bundled app built with Vite, and a standalone page without a bundler where a script is generated with the Intlayer CLI and its globals are used directly. The agent is told to initialise Intlayer before any content renders, to read fields by name so unused translations can be purged, and to use the compiler for extracting content keys from components.

The skill expects a JavaScript or TypeScript project and uses the Intlayer packages, including the vanilla helper package. Reference files inside the skill cover variants, collections, formatters for numbers, currency and dates, and package exports.

## When your agent uses it

> Integrates Intlayer internationalization with plain JavaScript / TypeScript (no UI framework). Use when the user asks to "setup Vanilla JS i18n", translate a static HTML page, use "useIntlayer" without a framework, or switch locale in a vanilla application.

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

## Features

- **Declarative content dictionaries:** Shows how to declare translated strings per locale in dictionary files stored beside the code that uses them.
- **Live locale-aware text:** Explains how to update DOM text and native attributes when the active language changes.
- **Runtime locale switching:** Covers reading available locales, changing the language and reacting to changes in the document.
- **Vite and standalone setups:** Provides separate guidance for bundled Vite apps and bundler-free pages using a generated script.
- **Bundle size optimisation:** Advises reading content fields by name so the build can trim and minify unused dictionary entries.
- **Key extraction compiler:** Describes using the Intlayer compiler to pull content keys out of components via CLI or at build time.

## Good for

- Translate a static HTML page into several languages without a framework
- Set up i18n in a Vite-based vanilla JavaScript app
- Add a language switcher that updates the page and html lang attribute
- Extract existing hardcoded strings into Intlayer content dictionaries
- Format localized numbers, currencies and dates in a plain JS project

## Install

### Claude Code

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

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

### Codex

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

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

### Cursor

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

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

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

### VS Code

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

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

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

## FAQ

### Does Intlayer vanilla require a UI framework?

No. It is written for plain JavaScript or TypeScript without a UI framework, and it also covers pages with no bundler.

### When does the skill trigger?

When the user asks to set up Vanilla JS i18n, translate a static HTML page, use useIntlayer without a framework, or switch locale in a vanilla application.

### Are there scripts the agent runs?

The skill ships no scripts of its own; it refers to Intlayer CLI commands such as extract and standalone generation.

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

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

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

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

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

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