diff --git a/internal/i18n/cmd/check/main.go b/internal/i18n/cmd/check/main.go index 7361d65..23539fd 100644 --- a/internal/i18n/cmd/check/main.go +++ b/internal/i18n/cmd/check/main.go @@ -44,6 +44,7 @@ func main() { } func checkLocaleFormat(fix bool) error { + // #nosec G703 -- pattern is repo-local and not user-controlled. files, err := filepath.Glob(filepath.Join("internal", "i18n", "locales", "*.json")) if err != nil { return err diff --git a/internal/i18n/schema/messages.schema.json b/internal/i18n/schema/messages.schema.json index ebc8f53..861ea9b 100644 --- a/internal/i18n/schema/messages.schema.json +++ b/internal/i18n/schema/messages.schema.json @@ -7,6 +7,6 @@ "minLength": 1 }, "propertyNames": { - "pattern": "^(cmd|flag|error|output|prompt|success|warning|table)\\.[a-z0-9_.-]+$" + "pattern": "^(cmd|flag|error|prompt|success|warning|confirm|table|output)\\.[a-z0-9_.-]+$" } }