---
title: "X18N5006: Batch approval is not narrowed"
description: "Batch approval is not narrowed. Narrow it, for example with `--machine` or a glob; `**` approves every key on purpose."
canonical_url: "https://x18n.dev/errors/x18n5006"
---
# X18N5006: Batch approval is not narrowed

> Batch approval is not narrowed. Narrow it, for example with \`--machine\` or a glob; \`\*\*\` approves every key on purpose.

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

## Message

```
[X18N5006] Batch approval is not narrowed <detail>
├▶ fix: Narrow it, for example with `--machine` or a glob; `**` approves every key on purpose.
╰▶ see: https://x18n.dev/errors/x18n5006
```

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 review approve` with filters approves many messages at once, so it MUST say which ones: a key glob, `--namespace`, `--machine`, `--state`, `--thread` or `--from <file>`.

1. To approve what a translator wrote, run `x18n review approve --machine --dry-run` first, then without `--dry-run`.
2. To approve every key on purpose, pass `'**'` as the glob.

## Exit code

The CLI exits with code `1`.

## Source

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


## Sitemap

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