# Intlayer backend

> Intlayer backend is an open-source agent skill for developer tools. Adds Intlayer i18n to Node.js and Bun backends so API responses follow the request locale. 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-backend
- **Repository:** https://github.com/aymericzip/intlayer
- **GitHub stars:** 869
- **License:** Apache-2.0
- **Skill name:** intlayer-backend
- **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 server-side code for Node.js and Bun frameworks, including Express, Fastify, Hono, NestJS, AdonisJS, Elysia and HTMX. It explains the core pattern: a per-framework middleware or plugin detects each request's locale from a cookie, header or Accept-Language and scopes it to that request, so helper functions can return the right text without passing a locale through every call.

The skill shows how to declare content dictionaries, how to use inline translation helpers and dictionary lookups inside route handlers, and how to resolve content for background work such as jobs, queues or emails by passing a stored user locale explicitly. Per-framework reference guides cover registration order and package exports.

The agent is expected to work in a TypeScript or JavaScript backend project and install the matching intlayer package for the chosen framework.

## When your agent uses it

> Integrates Intlayer internationalization with Node.js / Bun backends (Express, Fastify, Hono, NestJS, AdonisJS, Elysia, HTMX). Use when the user asks to "translate API responses", "setup server-side i18n", register the Intlayer middleware, or use "t" / "getIntlayer" in a route handler.

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

## Features

- **Locale middleware setup:** Registers the Intlayer middleware or plugin so each request gets its own resolved locale.
- **Framework registration patterns:** Covers how to register Intlayer in Express, NestJS, Fastify, Hono, Elysia and AdonisJS.
- **Request-scoped translation helpers:** Uses t, getIntlayer and getDictionary inside route handlers and services without passing locale arguments.
- **Content dictionary declaration:** Shows how to define typed multilingual content dictionaries with the t function.
- **Background job localization:** Resolves content for queues, jobs and emails using a recipient's stored locale.
- **Per-framework reference guides:** Provides reference files for each supported framework and the Intlayer package exports.

## Good for

- Translate JSON API responses based on the caller's Accept-Language header
- Set up server-side i18n in an Express app with Intlayer
- Add Intlayer middleware to a Fastify or Hono server
- Localize transactional emails for each recipient's saved language
- Use getIntlayer to fetch translated strings inside a NestJS controller

## Install

### Claude Code

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

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

### Codex

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

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

### Cursor

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

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

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

### VS Code

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

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

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

## FAQ

### When does Intlayer backend trigger?

It triggers when the user asks to translate API responses, set up server-side i18n, register the Intlayer middleware, or use t or getIntlayer in a route handler.

### Which backend frameworks are covered?

Express, Fastify, Hono, NestJS, AdonisJS, Elysia and HTMX, each with its own reference guide.

### How does the locale get detected?

The middleware resolves the locale of each request from a cookie, a header or Accept-Language and scopes it to that request.

### How should content be translated outside a request, such as in a job?

Pass the recipient's stored locale explicitly, for example getIntlayer with a locale argument.

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

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

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

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

The closest alternatives to Intlayer backend are Intlayer react, Intlayer next js, Intlayer content, Intlayer vanilla and Intlayer usage.

## 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 next js](https://ai-powered.com/skills/intlayer-next-js): Intlayer next js is an open-source agent skill for developer tools.
- [Intlayer content](https://ai-powered.com/skills/intlayer-content): Intlayer content 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 usage](https://ai-powered.com/skills/intlayer-usage): Intlayer usage is an open-source agent skill for developer tools.
- [Intlayer astro](https://ai-powered.com/skills/intlayer-astro): Intlayer astro 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 remix](https://ai-powered.com/skills/intlayer-remix-aymericzip): Intlayer remix is an open-source agent skill for web localization.

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