summaryrefslogtreecommitdiff
path: root/vendor/github.com/jmshal/go-locale/detect_locale_darwin.go
blob: 4cce554e176c0195aacf67c598e76d2dc31abeba (plain)
1
2
3
4
5
6
7
8
9
package go_locale

func DetectLocale() (string, error) {
	return getCommandOutput(
		"defaults",
		"read",
		"/Library/Preferences/.GlobalPreferences",
		"AppleLocale")
}