mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
UX: Loaclize the avatar-favicon description text (#18132)
This commit is contained in:
parent
f499b56d16
commit
ada47802b3
@ -12,6 +12,7 @@ import {
|
||||
JustifyContent,
|
||||
IconColor,
|
||||
} from '../../../helpers/constants/design-system';
|
||||
import { useI18nContext } from '../../../hooks/useI18nContext';
|
||||
import { AVATAR_FAVICON_SIZES } from './avatar-favicon.constants';
|
||||
|
||||
export const AvatarFavicon = ({
|
||||
@ -23,6 +24,8 @@ export const AvatarFavicon = ({
|
||||
borderColor = BorderColor.transparent,
|
||||
...props
|
||||
}) => {
|
||||
const t = useI18nContext();
|
||||
|
||||
return (
|
||||
<AvatarBase
|
||||
size={size}
|
||||
@ -36,7 +39,7 @@ export const AvatarFavicon = ({
|
||||
<img
|
||||
className="mm-avatar-favicon__image"
|
||||
src={src}
|
||||
alt={`${name} logo`}
|
||||
alt={t('logo', [name])}
|
||||
/>
|
||||
) : (
|
||||
<Icon
|
||||
|
Loading…
Reference in New Issue
Block a user