Skip to content

Commit

Permalink
add i18n
Browse files Browse the repository at this point in the history
Signed-off-by: Qxisylolo <qianxisy@amazon.com>
  • Loading branch information
Qxisylolo committed Oct 16, 2024
1 parent 955ab50 commit 31f95a2
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,12 @@ export const WorkspacePickerContent = ({
...workspace,
accessTimeStamp: recentWorkspace?.timestamp,
accessTimeDescription: recentWorkspace
? `Viewed ${moment(recentWorkspace.timestamp).fromNow()}`
: `Not visited recently`,
? i18n.translate('workspace.picker.accessTime.description', {
defaultMessage: `Viewed ${moment(recentWorkspace.timestamp).fromNow()}`,
})
: i18n.translate('workspace.picker.accessTime.not.visited', {
defaultMessage: `Not visited recently`,
}),
};
});

Expand Down

0 comments on commit 31f95a2

Please sign in to comment.