MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / ToggleLocale

Function ToggleLocale

internal/tui/i18n.go:21–27  ·  view source on GitHub ↗

ToggleLocale switches between zh and en.

()

Source from the content-addressed store, hash-verified

19
20// ToggleLocale switches between zh and en.
21func ToggleLocale() {
22 if currentLocale == "zh" {
23 currentLocale = "en"
24 } else {
25 currentLocale = "zh"
26 }
27}
28
29// T returns the translated string for the given key.
30func T(key string) string {

Callers 1

UpdateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected