feat: translation support
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
See #483
This commit is contained in:
@ -5,6 +5,7 @@ import (
|
||||
"fmt"
|
||||
|
||||
"coopcloud.tech/abra/pkg/context"
|
||||
"coopcloud.tech/abra/pkg/i18n"
|
||||
"coopcloud.tech/abra/pkg/log"
|
||||
commandconnPkg "coopcloud.tech/abra/pkg/upstream/commandconn"
|
||||
dConfig "github.com/docker/cli/cli/config"
|
||||
@ -22,7 +23,7 @@ func CreateContext(contextName string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
log.Debugf("created the %s context", contextName)
|
||||
log.Debug(i18n.G("created the %s context", contextName))
|
||||
|
||||
return nil
|
||||
}
|
||||
@ -62,7 +63,7 @@ func createContext(name string, host string) error {
|
||||
|
||||
func DeleteContext(name string) error {
|
||||
if name == "default" {
|
||||
return errors.New("context 'default' cannot be removed")
|
||||
return errors.New(i18n.G("context 'default' cannot be removed"))
|
||||
}
|
||||
|
||||
if _, err := GetContext(name); err != nil {
|
||||
|
Reference in New Issue
Block a user