diff --git a/src/app/home/Home.tsx b/src/app/home/Home.tsx index dbc15c9b..35b26791 100644 --- a/src/app/home/Home.tsx +++ b/src/app/home/Home.tsx @@ -2,7 +2,7 @@ import { Fragment } from 'react'; import { useLocale } from 'hooks/useLocale/useLocale'; import { AppLocale } from 'context/locale/AppLocale.enum'; -import { AppMessages } from 'i18n/messages'; +import { Translation } from 'ui/translation/Translation'; import { LocationInfo } from 'ui/locationInfo/LocationInfo'; import { useAuth } from 'hooks/useAuth/useAuth'; import { useUsers } from '../../hooks/useUsers/useUsers'; @@ -10,7 +10,7 @@ import { AppRoute } from 'routing/AppRoute.enum'; import { useNavigate } from 'hooks/useNavigate/useNavigate'; export const Home = () => { - const { formatMessage, locale, setLocale } = useLocale(); + const { locale, setLocale } = useLocale(); const { user, login, logout, isAuthenticated, isAuthenticating } = useAuth(); const { @@ -28,13 +28,12 @@ export const Home = () => { <>
- {formatMessage({ id: AppMessages['home.helloWorld'] })}
+ formatMessage
- {' '}
- function from react-intl. Click{' '}
+ This text is translated using Translation component.
+
+ Click{' '}
+