MCPcopy Index your code
hub / github.com/writefreely/writefreely / localStr

Function localStr

templates.go:209–215  ·  view source on GitHub ↗
(term, lang string)

Source from the content-addressed store, hash-verified

207}
208
209func localStr(term, lang string) string {
210 s := l10n.Strings(lang)[term]
211 if s == "" {
212 s = l10n.Strings("")[term]
213 }
214 return s
215}
216
217func localHTML(term, lang string) template.HTML {
218 s := l10n.Strings(lang)[term]

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected