---
title: "X18N6002: Unknown translator"
description: "Unknown translator. Use an id listed by `x18n translators`."
canonical_url: "https://x18n.dev/errors/x18n6002"
---
# X18N6002: Unknown translator

> Unknown translator. Use an id listed by \`x18n translators\`.

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

## Message

```
[X18N6002] Unknown translator <detail>
├▶ fix: Use an id listed by `x18n translators`.
╰▶ see: https://x18n.dev/errors/x18n6002
```

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

A translator id in `translate.translators`, `translate.locales` or `--translator` matches no translator of the plugins.

1. Run `x18n translators` to list the ids.
2. A translator plugin can set its own id, for example `translatorAi({ model, id: 'fast' })`.

## 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.
