hard-string

A hard-coded string that should probably be a message. On with `extract.autoDetect`.

A hard-coded string that should probably be a message. On with extract.autoDetect.

The check has the severity info, but it runs only when the config turns it on.

The check is on when extract.autoDetect is true, or when you set a severity for it in checks. Run x18n extract to turn the reported strings into keys.

Configure

Turn the check on in checks:

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

export default defineConfig({
  checks: {
    'hard-string': 'warning',
  },
})

x18n check --only hard-string runs this check alone. x18n check --skip hard-string skips it for one run.

Source