diff options
| author | eltrac <hi@eltr.ac> | 2026-05-01 14:07:15 +0800 |
|---|---|---|
| committer | eltrac <hi@eltr.ac> | 2026-05-01 14:07:15 +0800 |
| commit | ec9557dc61ccc5c9958712e60472b5f1b827b4d4 (patch) | |
| tree | 45f15ef2925d7dbaee65a1e176d98dbb84eede8f | |
| parent | 37b796da0f1e0f0d27ceeaf7598dedcca4070dd8 (diff) | |
docs(i18n): translate mail subject
| -rw-r--r-- | i18n/en.toml | 1 | ||||
| -rw-r--r-- | i18n/zh.toml | 1 | ||||
| -rw-r--r-- | layouts/_partials/posts/interaction-buttons.html | 3 |
3 files changed, 4 insertions, 1 deletions
diff --git a/i18n/en.toml b/i18n/en.toml index 1c1838d..5723e57 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -96,3 +96,4 @@ note = "This website doesn’t have a comment section. You can discuss this page sendEmail = "Email me" goHere = "go here" replyVia = "Reply via" +mailSubject = "Re: %s" diff --git a/i18n/zh.toml b/i18n/zh.toml index d9eddcd..56485be 100644 --- a/i18n/zh.toml +++ b/i18n/zh.toml @@ -98,3 +98,4 @@ note = "「極客死亡計劃」没有评论区,你可以前往%s参与讨论ï sendEmail = "发邮件" goHere = "去这里" replyVia = "回复:" +mailSubject = "回复:%s" diff --git a/layouts/_partials/posts/interaction-buttons.html b/layouts/_partials/posts/interaction-buttons.html index a4b7bd8..7dd13ce 100644 --- a/layouts/_partials/posts/interaction-buttons.html +++ b/layouts/_partials/posts/interaction-buttons.html @@ -11,7 +11,8 @@ {{ T "interact.replyVia" }} </p> <div id="interaction-email" class="{{ $itemClasses }}"> - <a href="mailto:hi@eltr.ac?subject=回复:{{ .Title }}" + <a href="{{ printf "mailto:hi@eltr.ac?subject=%s" + (printf (T "interact.mailSubject") .Title)}}" class="{{ $itemLinkClasses }}"> <img src="/icons/mail.svg" width="16" height="16"> Email </a> |
