pl-fe: instance timeline button label

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2025-06-28 14:22:03 +02:00
parent 3fc3836257
commit bfb526397a
2 changed files with 4 additions and 0 deletions

View File

@ -32,10 +32,12 @@ interface IInstanceFavicon {
const messages = defineMessages({
bot: { id: 'account.badges.bot', defaultMessage: 'Bot' },
timeline: { id: 'account.instance_favicon', defaultMessage: 'Visit {domain} timeline' },
});
const InstanceFavicon: React.FC<IInstanceFavicon> = ({ account, disabled }) => {
const history = useHistory();
const intl = useIntl();
const handleClick: React.MouseEventHandler = (e) => {
e.stopPropagation();
@ -59,6 +61,7 @@ const InstanceFavicon: React.FC<IInstanceFavicon> = ({ account, disabled }) => {
className='size-4 flex-none focus:ring-2 focus:ring-primary-500 focus:ring-offset-2'
onClick={handleClick}
disabled={disabled}
title={intl.formatMessage(messages.timeline, { domain: account.domain })}
>
<img src={account.favicon} alt='' title={account.domain} className='max-h-full w-full' />
</button>

View File

@ -34,6 +34,7 @@
"account.header.alt": "Profile header",
"account.header.description": "Header description",
"account.hide_reblogs": "Hide reposts from @{name}",
"account.instance_favicon": "Visit {domain} timeline",
"account.last_status": "Last active",
"account.link_verified_on": "Ownership of this link was checked on {date}",
"account.load_activities": "Fetch latest posts",