Documentation
¶
Overview ¶
Command i18n-validate scans Go source files for i18n key usage and validates them against the locale JSON files.
Usage:
go run ./cmd/i18n-validate ./... go run ./cmd/i18n-validate ./pkg/cli ./cmd/dev
The validator checks:
- T("key") calls - validates key exists in locale files
- C("intent", ...) calls - validates intent exists in registered intents
- i18n.T("key") and i18n.C("intent", ...) qualified calls
Exit codes:
- 0: All keys valid
- 1: Missing keys found
- 2: Error during validation
Click to show internal directories.
Click to hide internal directories.