Skip to content

Commit d38d9a6

Browse files
committed
fix userlog after go version upgrade to 1.24
1 parent eeeb276 commit d38d9a6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

services/userlog/pkg/service/conversion.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,9 @@ func composeMessage(nt NotificationTemplate, locale, defaultLocale, path string,
471471

472472
func loadTemplates(nt NotificationTemplate, locale, defaultLocale, path string) (string, string) {
473473
t := l10n.NewTranslatorFromCommonConfig(defaultLocale, _domain, path, _translationFS, "l10n/locale").Locale(locale)
474-
return t.Get(nt.Subject), t.Get(nt.Message)
474+
subject := t.Get("%s", nt.Subject)
475+
message := t.Get("%s", nt.Message)
476+
return subject, message
475477
}
476478

477479
func executeTemplate(raw string, vars map[string]interface{}) (string, error) {

0 commit comments

Comments
 (0)