Scripts for i18n validation.
pnpm add @freckle/i18n-scriptsThe package installs three bins:
check-i18n-variables <project-path>...— extracts translation keys and the variables the code passes to them, then reports keys whose Locize value references a variable the code does not pass.check-i18next-icu-parser <namespace>...— reports Locize keys thati18nextcannot parse as ICU.check-missing-translations <namespace> [project-path]— reports keys used in code but missing from Locize, and keys present in Locize but untranslated. Needsgit,curlandjq.
- Package manager: pnpm (Node version pinned in
.nvmrc) pnpm build— copiessrc/todist/minus the tests;dist/is committedpnpm test— Vitestpnpm coverage— Vitest with coverage, gated at 70% (lines/branches/functions/statements)pnpm lint— ESLintpnpm format/pnpm format-check— Prettierpnpm knip— unused files, dependencies and exports- CI runs all of the above on every PR, plus a check that
dist/is up to date
See RELEASE.md for more details.