MCPcopy
hub / github.com/chubin/wttr.in / Text

Method Text

internal/localization/localizer.go:17–17  ·  view source on GitHub ↗

Text returns a translated string by key. It should be used for messages, captions, v1/v2 keys, etc. Do NOT pass condition codes here.

(lang, key string)

Source from the content-addressed store, hash-verified

15 // It should be used for messages, captions, v1/v2 keys, etc.
16 // Do NOT pass condition codes here.
17 Text(lang, key string) string
18
19 // Condition returns translated weather condition by numeric code.
20 Condition(lang string, code int) string

Callers 8

NewFunction · 0.65
textualInformationFunction · 0.65
addFrameFunction · 0.65
drawDateFunction · 0.65
RenderMethod · 0.65
printDayMethod · 0.65
formatDateMethod · 0.65
processLogLinesFunction · 0.65

Implementers 1

Bundleinternal/translate/bundle.go

Calls

no outgoing calls

Tested by

no test coverage detected