fix: handle translations
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-08-24 09:16:44 +02:00
parent 7ccbbe8916
commit 42dde0930d

View File

@ -47,7 +47,7 @@ func RecipeNameComplete() ([]string, cobra.ShellCompDirective) {
localRecipes, err := recipe.GetRecipesLocal()
if err != nil && !strings.Contains(err.Error(), "empty") {
err := fmt.Sprintf("autocomplete failed: %s", err)
err := i18n.G("autocomplete failed: %s", err)
return []string{err}, cobra.ShellCompDirectiveError
}