# @hua-labs/eslint-plugin-i18n - AI Documentation
# Version: 0.1.2
# Auto-generated by generate-docs — do not edit manually

package:
  name: "@hua-labs/eslint-plugin-i18n"
  version: "0.1.2"
  description: "ESLint plugin for i18n type safety — missing keys, unused keys, raw text, dynamic keys"
  license: "MIT"

overview: "ESLint plugin for i18n type safety — catch missing keys (with did-you-mean), hardcoded text (with key suggestions), dynamic key patterns, unlocalized fields, and common key consolidation. Includes i18n-lint CLI for project-wide analysis."

exports:
  main:
    path: "@hua-labs/eslint-plugin-i18n"
    provides:

features:
  - "no-missing-key — Detect t() keys not found in generated types + did-you-mean suggestions (up to 3)"
  - "no-raw-text — Catch CJK hardcoded text in JSX + reverse-lookup key suggestions via translationsDir + ignorePattern"
  - "no-dynamic-key — Warn on non-literal arguments to t() / tArray()"
  - "no-unlocalized-field — Detect description/label/value fields with literal strings instead of i18n keys"
  - "prefer-common-key — Suggest common namespace keys when same value exists there"
  - "no-unused-key — Placeholder rule for unused translation key detection (CLI recommended)"
  - "i18n-lint CLI — unused-keys, common-report, missing-translations commands"

related_packages:
  - "@hua-labs/i18n-core"
  - "@hua-labs/i18n-core-zustand"

compatibility:
  node: ">=20.0.0"
