TranslateText passes the template through an internationalization function to translate it to a pre-configured language, and returns the template with templateValues substituted in. Only the first map in templateValues is used.
(template string, templateValues ...map[string]interface{})
| 415 | // to translate it to a pre-configured language, and returns the template with |
| 416 | // templateValues substituted in. Only the first map in templateValues is used. |
| 417 | func (ui *UI) TranslateText(template string, templateValues ...map[string]interface{}) string { |
| 418 | return ui.translate(template, getFirstSet(templateValues)) |
| 419 | } |
| 420 | |
| 421 | // UserFriendlyDate converts the time to UTC and then formats it to ISO8601. |
| 422 | func (ui *UI) UserFriendlyDate(input time.Time) string { |
no test coverage detected