dynamic-key

A fully dynamic key that no check can follow.

A fully dynamic key that no check can follow.

The check is off by default.

A fully dynamic key, such as t(key), has no static prefix. No check can follow it. Turn this check on to find such usages.

Configure

Turn the check on in checks:

x18n.config.ts
import { defineConfig } from '@x18n/core'

export default defineConfig({
  checks: {
    'dynamic-key': 'warning',
  },
})

x18n check --only dynamic-key runs this check alone. x18n check --skip dynamic-key skips it for one run.

Source