WIP: feat: translation support
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
See #483
This commit is contained in:
@ -5,6 +5,7 @@ import (
|
||||
"os/exec"
|
||||
|
||||
"coopcloud.tech/abra/pkg/log"
|
||||
"coopcloud.tech/abra/pkg/i18n"
|
||||
)
|
||||
|
||||
// getGitDiffArgs builds the `git diff` invocation args. It removes the usage
|
||||
@ -26,7 +27,7 @@ func getGitDiffArgs(repoPath string) []string {
|
||||
// skips if it cannot find the command on the system.
|
||||
func DiffUnstaged(path string) error {
|
||||
if _, err := exec.LookPath("git"); err != nil {
|
||||
log.Warnf("unable to locate git command, cannot output diff")
|
||||
log.Warnf(i18n.G("unable to locate git command, cannot output diff"))
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user