Translate "unknown command" error output #629

Open
opened 2025-08-30 08:42:02 +00:00 by decentral1se · 2 comments
Owner

It's not possible to override / translate the following because cobra itself does not support it.

$ LANG=es ./abra app -h
Error: unknown command "app" for "abra"
Run 'abra --help' for usage.

Currently bocked due to https://github.com/spf13/cobra/pull/2090. (update: i'm pushing to finish this PR)

3f3b818825/args.go (L28-L39)

It's not possible to override / translate the following because `cobra` itself does not support it. ``` $ LANG=es ./abra app -h Error: unknown command "app" for "abra" Run 'abra --help' for usage. ``` Currently bocked due to https://github.com/spf13/cobra/pull/2090. (**update**: i'm pushing to finish this PR) https://github.com/spf13/cobra/blob/3f3b81882534a51628f3286e93c6842d9b2e29ea/args.go#L28-L39
decentral1se added the
i18n
label 2025-08-30 08:42:02 +00:00
decentral1se added this to the Language translation project 2025-08-30 09:52:54 +00:00
decentral1se moved this to To Do in Language translation on 2025-09-06 06:19:29 +00:00
decentral1se moved this to In Progress in Language translation on 2025-09-06 06:19:31 +00:00
Owner

Decision from Monday: we play the waiting game, hope that leonelquinteros merges the PR by the time we need to launch, decide between various unsavoury forking options if not.

> Decision from Monday: we play the waiting game, hope that `leonelquinteros` merges the PR by the time we need to launch, decide between various unsavoury forking options if not.
Author
Owner

Ah, minor correction: we hope for the comrade in https://github.com/spf13/cobra/pull/2090 to respond to me and specify what kind of changes they'd be willing to accept so I can whisk it up, get it merged, see the next cobra get released, then set comrade chasqui on the case to do the actual translations and then finally have cobra release once more so we can officially thread our LANG=... in there. no biggie 😂

Ah, minor correction: we hope for the comrade in https://github.com/spf13/cobra/pull/2090 to respond to me and specify what kind of changes they'd be willing to accept so I can whisk it up, get it merged, see the next cobra get released, then set comrade chasqui on the case to do the actual translations and then finally have cobra release once more so we can officially thread our `LANG=...` in there. no biggie 😂
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: toolshed/abra#629
No description provided.