MCPcopy Create free account
hub / github.com/wavetermdev/waveterm / DetermineLocale

Function DetermineLocale

pkg/wavebase/wavebase.go:337–343  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

335}
336
337func DetermineLocale() string {
338 truncated := strings.Split(DetermineLang(), ".")[0]
339 if truncated == "" {
340 return "C"
341 }
342 return strings.Replace(truncated, "_", "-", -1)
343}
344
345func ClientArch() string {
346 return fmt.Sprintf("%s/%s", runtime.GOOS, runtime.GOARCH)

Callers

nothing calls this directly

Calls 1

DetermineLangFunction · 0.85

Tested by

no test coverage detected