diff --git a/app/src/App.tsx b/app/src/App.tsx index f481a20..0125f8b 100644 --- a/app/src/App.tsx +++ b/app/src/App.tsx @@ -1,4 +1,5 @@ import { useEffect, type ReactNode } from 'react'; +import { useTranslation } from 'react-i18next'; import { Routes, Route, Navigate } from 'react-router-dom'; import { useAuth } from './store/auth'; import { useMe } from './api/queries'; @@ -39,6 +40,7 @@ function TrainerOnly({ children }: { children: ReactNode }) { } export default function App() { + const { t } = useTranslation(); const { user, ready, init } = useAuth(); useEffect(() => { @@ -46,7 +48,9 @@ export default function App() { }, [init]); if (!ready) { - return
Format kodu: 00-001
} + {postalInvalid && ( +{t('address.postalFormatError')}
+ )}