summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--i18n/en.yml5
-rw-r--r--i18n/zh.yml3
-rw-r--r--layouts/_shortcodes/music.html8
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
>