MCPcopy
hub / github.com/davyxu/tabtoy / String

Function String

v2/i18n/i18n.go:65–76  ·  view source on GitHub ↗
(id StringID)

Source from the content-addressed store, hash-verified

63var lanByStr = make(map[string]map[StringID]string)
64
65func String(id StringID) string {
66
67 if currLan == nil {
68 return "!!i18n not set!!"
69 }
70
71 if str, ok := currLan[id]; ok {
72 return str
73 }
74
75 return fmt.Sprintf("i18n:%v", id)
76}
77
78func SetLanguage(lan string) bool {
79 if v, ok := lanByStr[lan]; ok {

Callers 15

exportRowMajorMethod · 0.92
mustFillCheckFunction · 0.92
ParsePragmaMethod · 0.92
ParseDataMethod · 0.92
SolveUnknownModelMethod · 0.92
findlocalFieldTypeFunction · 0.92
parseFieldValueFunction · 0.92
ExportLocalTypeMethod · 0.92
NewFileFunction · 0.92
dataProcessorFunction · 0.92
RunFunction · 0.92
parseTableMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected