fix: mail template for push event (#38467) (#38468)

Backport #38467
This commit is contained in:
wxiaoguang
2026-07-15 18:57:03 +02:00
committed by GitHub
parent 5cb7ec9304
commit bf594690db
3 changed files with 47 additions and 13 deletions
+3 -1
View File
@@ -99,7 +99,9 @@ func composeIssueCommentMessages(ctx context.Context, comment *mailComment, lang
}
}
locale := translation.NewLocale(lang)
if lang == "mock" {
locale = &translation.MockLocale{}
}
mailMeta := map[string]any{
"locale": locale,
"FallbackSubject": fallback,