diff --git a/components/account/AccountAvatar.vue b/components/account/AccountAvatar.vue index 08c29fe4..f6310da9 100644 --- a/components/account/AccountAvatar.vue +++ b/components/account/AccountAvatar.vue @@ -12,7 +12,7 @@ const loaded = $ref(false) () +const { t } = useI18n() + const createdAt = $(useFormattedDateTime(() => account.createdAt, { month: 'long', day: 'numeric', @@ -43,13 +45,16 @@ function getFieldNameIcon(fieldName: string) { if (fieldNameIcons[name]) return fieldNameIcons[name] } +function getFieldIconTitle(fieldName: string) { + return fieldName === 'Joined' ? t('account.joined') : fieldName +} function previewHeader() { openMediaPreview([{ id: `${account.acct}:header`, type: 'image', previewUrl: account.header, - description: `${account.username}'s profile header`, + description: t('account.profile_description', [account.username]), }]) } @@ -58,7 +63,7 @@ function previewAvatar() { id: `${account.acct}:avatar`, type: 'image', previewUrl: account.avatar, - description: `${account.username}'s avatar`, + description: t('account.avatar_description', [account.username]), }]) } @@ -86,7 +91,7 @@ watchEffect(() => {