MCPcopy Index your code
hub / github.com/apache/answer / TranslateWithData

Function TranslateWithData

plugin/plugin.go:227–229  ·  view source on GitHub ↗

TranslateWithData translates the key to the language with data

(lang i18n.Language, key string, data any)

Source from the content-addressed store, hash-verified

225
226// TranslateWithData translates the key to the language with data
227func TranslateWithData(lang i18n.Language, key string, data any) string {
228 return translator.TrWithData(lang, key, data)
229}
230
231// TranslateFn presents a generator of translated string.
232// We use it to delegate the translation work outside the plugin.

Callers

nothing calls this directly

Calls 1

TrWithDataFunction · 0.92

Tested by

no test coverage detected