Windowsvia[GetUserDefaultLocaleName](http://msdn.microsoft.com/en-us/library/windows/desktop/dd318136.aspx) and [GetSystemDefaultLocaleName](http://msdn.microsoft.com/en-us/library/windows/desktop/dd318122.aspx) system calls. These calls are supported in Windows Vista and up.
#Usage
Addthefollowinglinetoyourgo`import`:
```
"github.com/cloudfoundry/jibber_jabber"
```
###DetectIETF
`DetectIETF`willreturnthecurrentlocaleasastring.Theformatofthelocalewillbethe[ISO639](http://en.wikipedia.org/wiki/ISO_639) two-letter language code, a DASH, then an [ISO 3166](http://en.wikipedia.org/wiki/ISO_3166-1) two-letter country code.
```
userLocale,err:=jibber_jabber.DetectIETF()
println("Locale:",userLocale)
```
###DetectLanguage
`DetectLanguage`willreturnthecurrentlangugeasastring.Theformatwillbethe[ISO639](http://en.wikipedia.org/wiki/ISO_639) two-letter language code.
```
userLanguage,err:=jibber_jabber.DetectLanguage()
println("Language:",userLanguage)
```
###DetectTerritory
`DetectTerritory`willreturnthecurrentlocaleterritoryasastring.Theformatwillbethe[ISO3166](http://en.wikipedia.org/wiki/ISO_3166-1) two-letter country code.