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,
|
JustifyContent,
|
||||||
IconColor,
|
IconColor,
|
||||||
} from '../../../helpers/constants/design-system';
|
} from '../../../helpers/constants/design-system';
|
||||||
|
import { useI18nContext } from '../../../hooks/useI18nContext';
|
||||||
import { AVATAR_FAVICON_SIZES } from './avatar-favicon.constants';
|
import { AVATAR_FAVICON_SIZES } from './avatar-favicon.constants';
|
||||||
|
|
||||||
export const AvatarFavicon = ({
|
export const AvatarFavicon = ({
|
||||||
@ -23,6 +24,8 @@ export const AvatarFavicon = ({
|
|||||||
borderColor = BorderColor.transparent,
|
borderColor = BorderColor.transparent,
|
||||||
...props
|
...props
|
||||||
}) => {
|
}) => {
|
||||||
|
const t = useI18nContext();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<AvatarBase
|
<AvatarBase
|
||||||
size={size}
|
size={size}
|
||||||
@ -36,7 +39,7 @@ export const AvatarFavicon = ({
|
|||||||
<img
|
<img
|
||||||
className="mm-avatar-favicon__image"
|
className="mm-avatar-favicon__image"
|
||||||
src={src}
|
src={src}
|
||||||
alt={`${name} logo`}
|
alt={t('logo', [name])}
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<Icon
|
<Icon
|
||||||
|
Loading…
x
Reference in New Issue
Block a user