From d3c8fd897276898d65c5e63e326aa5fa35731308 Mon Sep 17 00:00:00 2001 From: BigCoke233 Date: Sat, 31 Jan 2026 11:17:11 +0800 Subject: chore(i18n): translate texts in action area Former-commit-id: e238516797b087d27b351f408168b1cf64364385 --- i18n/en.yml | 8 +++++--- i18n/zh.yml | 8 +++++--- layouts/_partials/posts/fediverse-form.html | 16 +++++++--------- layouts/_partials/posts/webmention-form.html | 6 +++--- 4 files changed, 20 insertions(+), 18 deletions(-) diff --git a/i18n/en.yml b/i18n/en.yml index aa04e276..76dc8bdc 100644 --- a/i18n/en.yml +++ b/i18n/en.yml @@ -52,10 +52,12 @@ fuzzyTimes: night: Night midnight: Midnight actionMenu: - telegramChannel: Telegram Channel - sponsor: Buy me a coffee - comment: Comment + fediverse: Fediverse + openToot: Open Toot + fediversePlaceholder: your instance, optional webmention: Webmention + webmentionPlaceholder: Your post URL + send: Send rss_comment_link: "Come and leave a comment" webmention: fetching: Fetching Webmention... diff --git a/i18n/zh.yml b/i18n/zh.yml index 416f2fb1..a65db5d6 100644 --- a/i18n/zh.yml +++ b/i18n/zh.yml @@ -51,10 +51,12 @@ fuzzyTimes: night: '晚上' midnight: '深夜' actionMenu: - telegramChannel: 'Telegram 频道' - sponsor: 赞助作者 - comment: 评论 + fediverse: 联邦宇宙 + openToot: 打开帖子 + fediversePlaceholder: 实例域名,可留空 webmention: Webmention + webmentionPlaceholder: 你的文章 URL + send: 发送 rss_comment_link: "读完啦?来坐坐吧" webmention: fetching: 正在获取 Webmention... diff --git a/layouts/_partials/posts/fediverse-form.html b/layouts/_partials/posts/fediverse-form.html index 76072cf5..6c4fce6a 100644 --- a/layouts/_partials/posts/fediverse-form.html +++ b/layouts/_partials/posts/fediverse-form.html @@ -1,13 +1,9 @@ +{{ if .Params.toot }} +
-

Fediverse

- {{ with .Params.toot }} - - - {{ else }} -

No toot available

- - - {{ end }} +

{{ T "actionMenu.fediverse" }}

+ +
+ +{{ end }} diff --git a/layouts/_partials/posts/webmention-form.html b/layouts/_partials/posts/webmention-form.html index d55e8d58..65062592 100644 --- a/layouts/_partials/posts/webmention-form.html +++ b/layouts/_partials/posts/webmention-form.html @@ -1,6 +1,6 @@
-

Webmention

- +

{{ T "actionMenu.webmention" }}

+ - +
-- cgit v1.2.3