Skip to content

Commit

Permalink
Add translation
Browse files Browse the repository at this point in the history
  • Loading branch information
DustyReagan committed Jan 13, 2025
1 parent ec798cd commit a2ad571
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions client/reader/user-stream/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import page from '@automattic/calypso-router';
import { useTranslate } from 'i18n-calypso';
import { useEffect } from 'react';
import { connect } from 'react-redux';
import EmptyContent from 'calypso/components/empty-content';
Expand Down Expand Up @@ -26,6 +27,8 @@ type UserStreamState = {
};

export function UserStream( { userId, requestUser, user, streamKey, isLoading }: UserStreamProps ) {
const translate = useTranslate();

useEffect( () => {
requestUser( userId );
}, [ userId, requestUser ] );
Expand All @@ -38,9 +41,9 @@ export function UserStream( { userId, requestUser, user, streamKey, isLoading }:
return (
<EmptyContent
illustration="/calypso/images/illustrations/illustration-404.svg"
title="Uh oh. User not found."
line="Sorry, the user you were looking for could not be found."
action="Return to Reader"
title={ translate( 'Uh oh. User not found.' ) }
line={ translate( 'Sorry, the user you were looking for could not be found.' ) }
action={ translate( 'Return to Reader' ) }
actionURL="/read"
className="user-profile__404"
/>
Expand Down

0 comments on commit a2ad571

Please sign in to comment.