Skip to content

Commit

Permalink
UIU-3005-add more translations
Browse files Browse the repository at this point in the history
  • Loading branch information
Terala-Priyanka committed Feb 7, 2024
1 parent 042b47c commit 98f44b0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const ProfilePicture = ({ label, profilePictureLink }) => {
return (
<img
data-testid="profile-picture"
id="profile-picture"
className={css.profilePlaceholder}
alt={intl.formatMessage({ id: 'ui-users.information.profilePicture' })}
src={imgSrc}
Expand All @@ -43,15 +44,27 @@ const ProfilePicture = ({ label, profilePictureLink }) => {
aria-label="profile picture action menu"
role="menu"
>
<Button buttonStyle="dropdownItem"><Icon icon="profile">Local File</Icon></Button>
<Button buttonStyle="dropdownItem"><Icon icon="external-link">External URL</Icon></Button>
<Button buttonStyle="dropdownItem"><Icon icon="trash">Delete</Icon></Button>
<Button buttonStyle="dropdownItem">
<Icon icon="profile">
{intl.formatMessage({ id: 'ui-users.information.profilePicture.localFile' })}
</Icon>
</Button>
<Button buttonStyle="dropdownItem">
<Icon icon="external-link">
{intl.formatMessage({ id: 'ui-users.information.profilePicture.externalURL' })}
</Icon>
</Button>
<Button buttonStyle="dropdownItem">
<Icon icon="trash">
{intl.formatMessage({ id: 'ui-users.information.profilePicture.delete' })}
</Icon>
</Button>
</DropdownMenu>
);

return (
<>
<Label tagName="div">
<Label htmlFor="profile-picture">
{label}
</Label>
{ renderProfilePic()}
Expand Down
3 changes: 3 additions & 0 deletions translations/ui-users/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,9 @@
"information.middleName": "Middle name",
"information.profilePicture": "Profile picture",
"information.profilePicture.update": "Update",
"information.profilePicture.localFile": "Local File",
"information.profilePicture.externalURL": "External URL",
"information.profilePicture.delete": "Delete",
"information.barcode": "Barcode",
"information.selectUserType": "Select user type",
"information.userType": "User type",
Expand Down

0 comments on commit 98f44b0

Please sign in to comment.