X18N4007: Placeholder mismatch

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

Message

[X18N4007] Placeholder mismatch <detail>
├▶ fix: Keep every placeholder of the source value, or pass `--force`.
╰▶ see: https://x18n.antfu.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.

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