diff options
| author | BigCoke233 <hi@guhub.cn> | 2026-02-02 22:55:25 +0800 |
|---|---|---|
| committer | BigCoke233 <hi@guhub.cn> | 2026-02-02 22:55:25 +0800 |
| commit | 807a066fa4ce1adc11ef22a714f2e06c705ba941 (patch) | |
| tree | 6d199aecd1ef359cf291f6c4abdddbbe3846ebbe | |
| parent | 4fecea92dd8c285d9023c38affd6f5f2509db641 (diff) | |
chore(i18n): translation for music shortcode
Former-commit-id: fb1bbd2692cf2e193b57cce19a2a49a919965ad9
| -rw-r--r-- | i18n/en.yml | 5 | ||||
| -rw-r--r-- | i18n/zh.yml | 3 | ||||
| -rw-r--r-- | layouts/_shortcodes/music.html | 8 |
3 files changed, 11 insertions, 5 deletions
diff --git a/i18n/en.yml b/i18n/en.yml index 53d21209..54a558ae 100644 --- a/i18n/en.yml +++ b/i18n/en.yml @@ -54,7 +54,7 @@ actionMenu: email: "or send me an email!" interact: Interact fediverse: Fediverse - openToot: Open Toot + openToot: Open T{oot fediversePlaceholder: your instance, optional webmention: Webmention webmentionPlaceholder: Your post URL @@ -68,3 +68,6 @@ webmention: likedBy: %d people liked this page mentionsHeading: Mentions interactOnFediverse: Interact on Fediverse +music: + netease: Netease + openIn: 'Open in {{ . }}' diff --git a/i18n/zh.yml b/i18n/zh.yml index 39b6db68..422eeada 100644 --- a/i18n/zh.yml +++ b/i18n/zh.yml @@ -67,3 +67,6 @@ webmention: likedBy: %d 人喜欢了这篇文章 mentionsHeading: 提及这篇文章的 interactOnFediverse: 在 Fediverse 上互动 +music: + netease: 网易云音乐 + openIn: '在 {{ . }} 中打开' diff --git a/layouts/_shortcodes/music.html b/layouts/_shortcodes/music.html index 86566adf..354d2c59 100644 --- a/layouts/_shortcodes/music.html +++ b/layouts/_shortcodes/music.html @@ -17,7 +17,7 @@ <a href="{{ . }}" class="{{ $aTagClasses }}" target="_blank" - title="在 Apple Music 中打开" + title="{{ T "music.openIn" "Spotify" }}" alt="Apple Music" data-tooltip > @@ -30,12 +30,12 @@ <a href="{{ . }}" class="{{ $aTagClasses }}" target="_blank" - title="在网易云音乐中打开" + title="{{ T "music.openIn" (T "music.netease") }}" alt="Netease Cloud Music" data-tooltip > <img src="/img/netease-music.png" loading="lazy" class="{{ $imageClasses }}" /> - <span class="md:hidden">网易云</span> + <span class="md:hidden">{{ T "music.netease" }}</span> </a> {{ end }} @@ -43,7 +43,7 @@ <a href="{{ . }}" class="{{ $aTagClasses }}" target="_blank" - title="在 Spotify 中打开" + title="{{ T "music.openIn" "Spotify" }}" alt="Spotify" data-tooltip > |
