fix: mail template for push event (#38467)

fix #38465
This commit is contained in:
wxiaoguang
2026-07-15 18:57:44 +02:00
committed by GitHub
parent fa50ad2aa9
commit ce683b34c6
3 changed files with 38 additions and 4 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,