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:
@ -10,6 +10,7 @@ import (
|
||||
dConfig "github.com/docker/cli/cli/config"
|
||||
"github.com/docker/cli/cli/context/docker"
|
||||
contextStore "github.com/docker/cli/cli/context/store"
|
||||
"github.com/leonelquinteros/gotext"
|
||||
)
|
||||
|
||||
type Context = contextStore.Metadata
|
||||
@ -22,7 +23,7 @@ func CreateContext(contextName string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
log.Debugf("created the %s context", contextName)
|
||||
log.Debug(gotext.Get("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(gotext.Get("context 'default' cannot be removed"))
|
||||
}
|
||||
|
||||
if _, err := GetContext(name); err != nil {
|
||||
|
Reference in New Issue
Block a user