---
title: "What is x18n"
description: "x18n reads the i18n setup of a project, reports problems in its locale files and changes them safely."
canonical_url: "https://x18n.dev/guide"
---
# What is x18n

> x18n reads the i18n setup of a project, reports problems in its locale files and changes them safely.

x18n reads the i18n setup of a project: the locale files, and the translate calls in the code. It shows every key across locales, finds where each key is used, and reports keys that are missing, unused or broken. It also changes locale files for you, without breaking their format.

## The problem

Locale files drift as a project grows:

- A key exists in English but not in German.
- A key stays in the files after the code stops using it.
- A translation drops a placeholder, so `Hello {name}` becomes `Hallo`.
- Hard-coded text gets into the UI without a key.

[i18n-ally](https://github.com/lokalise/i18n-ally) found many of these problems inside VS Code. Its logic is tied to the VS Code API, so it cannot run in CI, in a browser or for a coding agent. x18n moves the same logic into an engine that runs anywhere.

## One engine, many surfaces

The engine is `@x18n/core`. It does no file access itself and knows no editor. A surface is a layer that people or tools use on top of the engine:

- The [CLI](https://x18n.dev/surfaces/cli) is for humans, CI and agents. `x18n check` does for i18n what `tsc --noEmit` does for types.
- The [VS Code extension](https://x18n.dev/surfaces/vscode) shows translations in place and treats keys like symbols: go to definition, find references and rename.
- The [language server](https://x18n.dev/references/lsp-protocol) gives the same features to any editor with an LSP client.
- The [UI](https://x18n.dev/surfaces/ui) shows every key across locales in a table. It runs as a local server, or as a static report.
- The [MCP server](https://x18n.dev/agents/mcp) gives the same tools to coding agents.

Every surface reads the same config and reports the same diagnostics. A fix that you make in the editor shows in the UI, and `x18n check` in CI agrees with both.

## Libraries and formats

::x18n-frameworks
::

x18n knows no i18n library and no file format by itself. Plugins add that knowledge. A preset is a group of plugins for one library. x18n detects the presets from the dependencies of the project:

- Vue: [vue-i18n](https://x18n.dev/presets/vue-i18n), [@nuxtjs/i18n](https://x18n.dev/presets/nuxt-i18n), [Nuxt I18n Micro](https://x18n.dev/presets/nuxt-i18n-micro), [fluent-vue](https://x18n.dev/presets/fluent-vue) and [laravel-vue-i18n](https://x18n.dev/presets/laravel-vue-i18n)
- React and Next.js: [i18next](https://x18n.dev/presets/i18next), [react-i18next](https://x18n.dev/presets/react-i18next), [i18next-shopify](https://x18n.dev/presets/i18next-shopify), [next-intl](https://x18n.dev/presets/next-intl), [next-translate](https://x18n.dev/presets/next-translate), [next-international](https://x18n.dev/presets/next-international), [react-intl](https://x18n.dev/presets/react-intl), [Lingui](https://x18n.dev/presets/lingui) and [@fluent/react](https://x18n.dev/presets/fluent-react)
- Svelte: [svelte-i18n and sveltekit-i18n](https://x18n.dev/presets/svelte-i18n) and [svelte-i18next](https://x18n.dev/presets/svelte-i18next)
- Astro: [i18next](https://x18n.dev/presets/i18next) (also with astro-i18next) and [Paraglide](https://x18n.dev/presets/paraglide)
- Solid: [@solid-primitives/i18n](https://x18n.dev/presets/solid-primitives-i18n)
- Paraglide JS: [Paraglide](https://x18n.dev/presets/paraglide)
- Gravity UI: [@gravity-ui/i18n](https://x18n.dev/presets/gravity-ui-i18n)
- typesafe-i18n: [typesafe-i18n](https://x18n.dev/presets/typesafe-i18n)
- Angular: [@angular/localize](https://x18n.dev/presets/angular-localize), [ngx-translate](https://x18n.dev/presets/ngx-translate), [Transloco](https://x18n.dev/presets/transloco) and [angular-i18next](https://x18n.dev/presets/angular-i18next)
- Other JS libraries: [ember-intl](https://x18n.dev/presets/ember-intl), [Polyglot.js](https://x18n.dev/presets/polyglot), [Globalize](https://x18n.dev/presets/globalize), [es2015-i18n-tag](https://x18n.dev/presets/i18n-tag), [i18n-js](https://x18n.dev/presets/ruby-i18n-js) and [UI5](https://x18n.dev/presets/ui5)
- Extensions: [Chrome and WebExtensions](https://x18n.dev/presets/chrome-extension) and [VS Code](https://x18n.dev/presets/vscode-extension) (`vscode.l10n` and `package.nls.json`)
- PHP: [Laravel](https://x18n.dev/presets/laravel), [Joomla](https://x18n.dev/presets/php-joomla) and [gettext](https://x18n.dev/presets/php-gettext)
- Ruby: [Rails](https://x18n.dev/presets/ruby-rails) and [Jekyll](https://x18n.dev/presets/jekyll)
- Dart: [flutter_i18n](https://x18n.dev/presets/flutter), [easy_localization](https://x18n.dev/presets/easy-localization) and [flutter_translate](https://x18n.dev/presets/flutter-translate)
- Python: [gettext](https://x18n.dev/presets/python-gettext) (Django, Flask-Babel, Babel) and [i18nice](https://x18n.dev/presets/i18nice) (also python-i18n)
- Rust: [cargo-i18n](https://x18n.dev/presets/cargo-i18n) (Fluent)
- Android: [`strings.xml`](https://x18n.dev/presets/android-strings) in Kotlin, Java and XML
- AdonisJS: [`@adonisjs/i18n`](https://x18n.dev/presets/adonisjs), in code and Edge templates
- .NET: [`.resx` resources](https://x18n.dev/presets/dotnet-resx) in C#, Razor and Blazor

The built-in formats read JSON, JSONC, JSON5, YAML, gettext PO, Java properties, Fluent FTL, INI, PHP arrays, .NET resx, XLIFF, XMB and XTB, ARB and static JS or TS modules. They also read Vue `<i18n>` and `<fluent>` blocks. For a library or format that x18n does not support, [write a plugin](https://x18n.dev/plugins) in YAML or TypeScript.

## What x18n does not do

- It does not call machine translation services. Instead, it writes a [translate prompt](https://x18n.dev/agents/prompts) for an agent or an LLM, and checks the result.
- It is not a runtime i18n library. It reads and writes the files that your runtime library uses.
- It has no hosted service, no account and no telemetry.
- It does not run your source files or locale files. It parses them. Only a TS or JS config file and TS plugins run.

## Packages

| Package          | Contents                                                            |
| ---------------- | ------------------------------------------------------------------- |
| `@x18n/cli`      | The CLI.                                                            |
| `@x18n/core`     | The engine: domain model, plugin API, analysis, and `defineConfig`. |
| `@x18n/builtins` | The built-in plugins and presets.                                   |
| `@x18n/node`     | Config loading and file access in Node.                             |
| `@x18n/lsp`      | The language server.                                                |
| `@x18n/ui`       | The UI.                                                             |
| `x18n-vscode`    | The VS Code extension.                                              |


## Sitemap

See the full [sitemap](https://x18n.dev/sitemap.md) for all pages.
