i18n-check

star 13

Scan files for hardcoded English strings and report translation gaps

databayt By databayt schedule Updated 3/21/2026

name: i18n-check description: Scan files for hardcoded English strings and report translation gaps

Audit the specified files (or src/components/school-dashboard/ by default) for hardcoded English strings that should use dictionary keys or i18n helpers.

$ARGUMENTS

Scan Process

  1. Run these grep patterns across target files (skip dictionaries/, __tests__/, .test., .spec.):

    • <FormLabel>[A-Za-z][^{<]+</FormLabel> -- hardcoded form labels
    • toast\.(success|error|warning|info)\(["'][A-Za-z] -- hardcoded toasts
    • <Button[^>]*>[A-Za-z][^{<]+</Button> -- hardcoded buttons
    • error:\s*["'][A-Z] -- hardcoded error returns
    • label:\s*["'][A-Z] -- hardcoded select labels
    • \.(min|max|email|url|regex|refine)\([^)]*["'][A-Z] -- hardcoded Zod messages
    • (title|name|description|label|body)(Ar|En|Arabic|English)\b -- bilingual field names
    • placeholder=["'][A-Z][^"'{]+["'] -- hardcoded placeholders
  2. Report results grouped by anti-pattern type with file:line references

  3. Output summary with counts per type and total

Fix Reference

See .claude/rules/translation.md for correct patterns. Key helpers:

  • ValidationHelper from @/components/internationalization/helpers
  • ToastHelper from @/components/internationalization/helpers
  • ErrorHelper from @/components/internationalization/helpers
  • createI18nHelpers(dictionary.messages) returns all three
Install via CLI
npx skills add https://github.com/databayt/hogwarts --skill i18n-check
Repository Details
star Stars 13
call_split Forks 10
navigation Branch main
article Path SKILL.md
More from Creator