diff --git a/web/pages/404.tsx b/web/pages/404.tsx index 8e03be29..6944eb25 100644 --- a/web/pages/404.tsx +++ b/web/pages/404.tsx @@ -4,6 +4,7 @@ import {Col} from 'web/components/layout/col' import {Title} from 'web/components/widgets/title' import {SEO} from "web/components/SEO"; +import {useT} from "web/lib/locale"; export default function Custom404(props: { customText?: string }) { @@ -22,13 +23,16 @@ export default function Custom404(props: { customText?: string }) { export function Custom404Content(props: { customText?: string }) { const {customText} = props + const t = useT() + return (
- 404: Oops! - {customText ?

{customText}

:

I can't find that page.

} + {t('404.title', "404: Oops!")} + {customText ?

{customText}

:

{t('404.default_message', "I can't find that page.")}

}

- If you didn't expect this, get some help. + {t('404.help_text', "If you didn't expect this, get some ")} + {t("organization.help", "help").toLowerCase()}.

{/**/}