1
0
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:
David Walsh 2023-03-14 01:48:27 -05:00 committed by GitHub
parent f499b56d16
commit ada47802b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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