X18N4006: Key not found

Key not found. List keys with `x18n keys` (agents: the `x18n_keys` tool).

Message

[X18N4006] Key not found <detail>
├▶ fix: List keys with `x18n keys` (agents: the `x18n_keys` tool).
╰▶ see: https://x18n.antfu.dev/errors/x18n4006

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

The key does not exist in any locale.

  1. Run x18n keys to list the keys, or x18n keys "<glob>" to search.
  2. Check the namespace. In a namespaced project the key is ns:path, for example common:save.

Exit code

The CLI exits with code 1.

Source