Skip to content

Commit

Permalink
fix: allow to translate "Lock" string on profile (#2571)
Browse files Browse the repository at this point in the history
  • Loading branch information
shuuji3 authored Jan 24, 2024
1 parent 77b917a commit 2a59543
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/account/AccountLockIndicator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
defineProps<{
showLabel?: boolean
}>()
const { t } = useI18n()
</script>

<template>
Expand All @@ -15,7 +17,7 @@ defineProps<{
<div i-ri:lock-line />
</CommonTooltip>
<div v-if="showLabel">
Lock
{{ t('account.lock') }}
</div>
</div>
</template>
1 change: 1 addition & 0 deletions locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"follows_you": "Follows you",
"go_to_profile": "Go to profile",
"joined": "Joined",
"lock": "Lock",
"moved_title": "has indicated that their new account is now:",
"muted_users": "Muted users",
"muting": "Muted",
Expand Down

0 comments on commit 2a59543

Please sign in to comment.