---
title: "X18N4007: Placeholder mismatch"
description: "Placeholder mismatch. Keep every placeholder of the source value, or pass `--force`."
canonical_url: "https://x18n.dev/errors/x18n4007"
---
# X18N4007: Placeholder mismatch

> Placeholder mismatch. Keep every placeholder of the source value, or pass \`--force\`.

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

## Message

```
[X18N4007] Placeholder mismatch <detail>
├▶ fix: Keep every placeholder of the source value, or pass `--force`.
╰▶ see: https://x18n.dev/errors/x18n4007
```

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 value adds or drops a placeholder compared to the source value, so `x18n apply` wrote nothing. The JSON output lists the values in `data.rejected`.

1. Keep every placeholder of the source value, with the same name, for example `{name}` or `{{count}}`.
2. Run `x18n apply` again.
3. If the difference is on purpose, pass `--force`.

## Exit code

The CLI exits with code `1`.

## Source

- [`packages/cli/src/commands/change.ts`](https://github.com/x18n-dev/x18n/blob/main/packages/cli/src/commands/change.ts)


## Sitemap

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