X18N4001: Resource is read-only

Resource is read-only. Edit the source of computed values, or use a writable format.

Message

[X18N4001] Resource is read-only <detail>
├▶ fix: Edit the source of computed values, or use a writable format.
╰▶ see: https://x18n.antfu.dev/errors/x18n4001

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 edit targets a read-only resource. Resources with execute: true are read-only, because x18n cannot write the code that computes them.

  1. Edit the source of the computed values by hand.
  2. Or move the messages to a JSON or YAML file.

Exit code

The CLI exits with code 1.

Source