defaults
Returns the shared immutable default spec catalog for common developer commands.
Return
built-in command specifications.
Builds an immutable catalog localized for locale, with English fallback.
Catalog construction is startup work; completion requests perform no bundle lookups. Canonical tokens, aliases, options, value candidates, semantic metadata, and catalog order remain unchanged.
Builds a localized catalog from bundle, preserving English for missing keys.
Builds a localized immutable catalog using a host's existing message system.
localize receives a stable key and the English fallback for each nonempty description and argument label. Keys are spec.<canonical.path>.description, spec.<canonical.path>.option.<first-option-token>.description, and spec.<canonical.path>.argument.<original-name>.name or .description. For example: spec.git.status.description, spec.git.status.option.--short.description, and spec.kubectl.get.argument.resource.name. The argument's zero-based ordinal replaces its name when that name is empty. Dots separate canonical command and subcommand tokens; aliases and translated labels never become keys.