missing-key
A usage whose key is not defined in the source locale.
A usage whose key is not defined in the source locale.
The check is on by default, with the severity error.
Usages with a dynamic key are not reported. A usage with a static prefix, such as t(`pages.${id}.title`), is a prefix usage: it makes every key under pages count as used, and it is never a missing key.
Configure
Change the severity, or turn the check off, in checks:
x18n.config.ts
import { defineConfig } from '@x18n/core'
export default defineConfig({
checks: {
'missing-key': 'off',
},
})x18n check --only missing-key runs this check alone. x18n check --skip missing-key skips it for one run.