---
title: "X18N6001: No translator"
description: "No translator. Add a translator plugin, such as `@x18n/translator-ai`, and list its id in `translate.translators` if you set that option."
canonical_url: "https://x18n.dev/errors/x18n6001"
---
# X18N6001: No translator

> No translator. Add a translator plugin, such as \`@x18n/translator-ai\`, and list its id in \`translate.translators\` if you set that option.

<!-- Generated by docs/scripts/generate.ts from the source code. Do not edit. -->

## Message

```
[X18N6001] No translator <detail>
├▶ fix: Add a translator plugin, such as `@x18n/translator-ai`, and list its id in `translate.translators` if you set that option.
╰▶ see: https://x18n.dev/errors/x18n6001
```

The CLI prints the code and why the error happened, with details such as a file name or a field. The fix and a link to this page follow. With `--json`, the same parts are in `errors` of the [envelope](https://x18n.dev/references/json-contracts).

## What to do

`x18n translate` calls the translators of plugins, and the project has none for this locale.

1. Add a translator plugin, such as `@x18n/translator-ai`, to `plugins`.
2. If you set `translate.translators` or `translate.locales`, check that they list its id. `x18n translators` prints the ids and the chain per locale.
3. Without a translator, an agent can still translate with `x18n prompt translate`.

## Exit code

The CLI exits with code `1`.

## Source

- [`packages/core/src/project/translate.ts`](https://github.com/x18n-dev/x18n/blob/main/packages/core/src/project/translate.ts)


## Sitemap

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