X18N4005: No resource for the key
No resource for the key. Add a resource pattern for the locale, or create the locale file.
Message
[X18N4005] No resource for the key <detail>
├▶ fix: Add a resource pattern for the locale, or create the locale file.
╰▶ see: https://x18n.antfu.dev/errors/x18n4005The 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
x18n has no resource where it can write the key in this locale.
- Add a resource pattern in
resourcesthat covers the locale, for example{ pattern: 'locales/{locale}.json' }. - Or create the locale file, then run the command again.
Exit code
The CLI exits with code 1.