Mark "help" subcommand and "--help" flag for translation #628
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently:
Note that "help", and the explanation "Help about any command" are not translated.
This is because they don't appear in the Gettext catalogue.
Pending merge of https://github.com/spf13/cobra/pull/2090, it's possible that we can work around this by defining our own
helpCommand
andhelpFlag
– but how to do this without huge repetition is not immediately obvious to me.If you set it once on the
rootCmd
the implementation incobra
will walk back up the command tree to run it 🎉