validate

command
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2026 License: EUPL-1.2 Imports: 11 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL