dashboard
repositories
filestore
activity
search
login
crazy-macs
/
private-voice
summary
reflog
commits
tree
docs
forks
compare
blame
|
history
|
raw
freeze(mas): snapshot tested 2.2.3 build 20260711.1807
Ariver
2026-07-11
015f1089ea875a153dd2a18ef42c25145d4868f5
[crazy-macs/private-voice.git]
/
C1.source
/
privatevoice.src
/
locale_windows.go
1
2
3
4
5
6
7
8
9
10
package main
import "syscall"
func isChinese() bool {
kernel32 := syscall.NewLazyDLL("kernel32.dll")
proc := kernel32.NewProc("GetUserDefaultUILanguage")
langID, _, _ := proc.Call()
return (langID & 0x3FF) == 0x04 // LANG_CHINESE
}