New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi-language support for CLIs? #1134
Comments
|
Are you talking about if there is multi-language support for default help message in Cobra? |
|
Yes and I've already checked the source code, where strings are encapsulated in the UsageTemplate. The way to go seems to change the usage template with SetUsageTemplate. If I have enough time, would it be of interest to include a small example in the docs? |
|
This issue is being marked as stale due to a long period of inactivity |
|
@thomasgloe I'd be interested to see a PR for this if you wanted to take a shot at it. |
|
This issue is being marked as stale due to a long period of inactivity |
|
This issue is being marked as stale due to a long period of inactivity |
|
I use |


I would like to support multiple languages for my CLI using cobra. Implementation for commands is no problem, but is it correct that there is currently no support for the text output generated by cobra itself (e.g., "Usage", "Flags", "Use "mycmd [command] --help" for more information about a command.")?
The text was updated successfully, but these errors were encountered: