diff --git a/components/account/AccountFollowButton.vue b/components/account/AccountFollowButton.vue
index 4584c804..b3765d2c 100644
--- a/components/account/AccountFollowButton.vue
+++ b/components/account/AccountFollowButton.vue
@@ -21,16 +21,14 @@ async function toggleFollow() {
}
}
+const { t } = useI18n()
+
useCommand({
scope: 'Actions',
-
order: -2,
-
visible: () => command && enable,
-
- name: () => `${relationship?.following ? 'Unfollow' : 'Follow'} ${getShortHandle(account)}`,
+ name: () => `${relationship?.following ? t('account.unfollow') : t('account.follow')} ${getShortHandle(account)}`,
icon: 'i-ri:star-line',
-
onActivate: () => toggleFollow(),
})
@@ -44,7 +42,7 @@ useCommand({
rounded-full flex="~ gap2 center" font-500 w-30 h-fit py1 :class="relationship?.following ? 'text-base border-text-base' : 'text-inverted bg-primary border-primary'" :hover="relationship?.following ? 'border-red text-red' : 'bg-base border-primary text-primary'" @click="toggleFollow"
>
- {{ relationship?.followedBy ? 'Mutuals' : 'Following' }}
+ {{ relationship?.followedBy ? $t('account.mutuals') : $t('account.following') }}
{{ $t('account.unfollow') }}
diff --git a/locales/en-US.json b/locales/en-US.json
index 4b6860d5..2bb7d85c 100644
--- a/locales/en-US.json
+++ b/locales/en-US.json
@@ -7,9 +7,11 @@
"follow_back": "Follow back",
"follow_requested": "Requested",
"followers_count": "{0} Followers",
+ "following": "Following",
"following_count": "{0} Following",
"follows_you": "Follows you",
"muted_users": "Muted users",
+ "mutuals": "Mutuals",
"pinned": "Pinned",
"posts_count": "{0} Posts",
"unfollow": "Unfollow"
@@ -105,9 +107,9 @@
"uploading": "Uploading..."
},
"status": {
+ "reblogged": "{0} reblogged",
"spoiler_show_less": "Show less",
- "spoiler_show_more": "Show more",
- "reblogged": "{0} reblogged"
+ "spoiler_show_more": "Show more"
},
"tab": {
"media": "Media",
diff --git a/locales/zh-CN.json b/locales/zh-CN.json
index 110b7a5a..6718fa9a 100644
--- a/locales/zh-CN.json
+++ b/locales/zh-CN.json
@@ -7,9 +7,11 @@
"follow_back": "回关",
"follow_requested": "已申请关注",
"followers_count": "被 {0} 人关注",
+ "following": "关注中",
"following_count": "正在关注 {0} 人",
"follows_you": "已关注你",
"muted_users": "已屏蔽的用户",
+ "mutuals": "互相关注",
"pinned": "置顶的帖文",
"posts_count": "{0} 条帖文",
"unfollow": "取消关注"