-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add automatic locale detection #4199
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sharifelgamal The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Can one of the admins verify this patch? |
pkg/minikube/console/console.go
Outdated
@@ -88,14 +89,20 @@ func OutStyle(style, format string, a ...interface{}) error { | |||
|
|||
// Out writes a basic formatted string to stdout | |||
func Out(format string, a ...interface{}) error { | |||
locale, err := jibber_jabber.DetectIETF() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mind taking some Go benchmarks to see how if this adversely affects the Out() call performance?
If so, perhaps we should move the preferred language setup to cmd/minikube/main.go.
cmd/minikube/cmd/start.go
Outdated
@@ -691,3 +693,12 @@ func saveConfig(clusterConfig cfg.Config) error { | |||
} | |||
return nil | |||
} | |||
|
|||
func determineLocale() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be in main.go
, so that it affects all commands, rather than just minikube start
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense. done.
Fixes #4183