diff --git a/components/KeyIndicator.tsx b/components/KeyIndicator.tsx index 2ee18c3..f395a1d 100644 --- a/components/KeyIndicator.tsx +++ b/components/KeyIndicator.tsx @@ -28,6 +28,7 @@ export function KeyIndicator(): React.ReactElement { href="/settings" className={`ml-2 text-xl ${color} hover:opacity-80 transition-opacity cursor-pointer`} title={title} + aria-label={title} onClick={(e) => e.stopPropagation()} > 🔑 diff --git a/components/NotificationBadgeButton.tsx b/components/NotificationBadgeButton.tsx index 843a28b..eeb90da 100644 --- a/components/NotificationBadgeButton.tsx +++ b/components/NotificationBadgeButton.tsx @@ -1,4 +1,5 @@ import { Button } from './ui' +import { t } from '@/lib/i18n' interface NotificationBadgeButtonProps { unreadCount: number @@ -6,13 +7,17 @@ interface NotificationBadgeButtonProps { } export function NotificationBadgeButton({ unreadCount, onClick }: NotificationBadgeButtonProps): React.ReactElement { + const ariaLabel = unreadCount > 0 + ? `${unreadCount} ${unreadCount === 1 ? t('notifications.badge.unread.singular') : t('notifications.badge.unread.plural')}` + : t('notifications.badge.noUnread') + return (