Skip to content

Commit

Permalink
enh: translate catchall.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-souza committed Dec 26, 2024
1 parent b9f19d4 commit 2177c24
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/catchall.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import Section from "@packages/components/Section";
import { LocalizedText } from "@packages/locale/context";

function PageNotFound() {
return (
<Section className="px-0 py-56 h-[100vh]">
<div className="flex flex-col items-center space-y-2 text-center md:space-y-4">
<h1 className="font-semibold text-3xl leading-tight sm:text-4xl">
Oops, não encontramos sua página
<LocalizedText token="not-found.title" />
</h1>
<p className="text-purple-400">(╯°□°)╯︵ ┻━┻</p>
</div>
Expand Down
1 change: 1 addition & 0 deletions packages/locale/context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export type TranslationNS =
| "team-page"
| "ask-us-page"
| "testimonials"
| "not-found"
| "transparency-portal";

export type TranslationToken = `${TranslationNS}.${string}`;
Expand Down
3 changes: 3 additions & 0 deletions packages/locale/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,6 @@ ask-us-page:

transparency-portal:
title: Transparency Portal

not-found:
title: Oops, we couldn't find this page
3 changes: 3 additions & 0 deletions packages/locale/pt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,6 @@ ask-us-page:

transparency-portal:
title: Portal de Transparência

not-found:
title: Oops, não encontramos sua página

0 comments on commit 2177c24

Please sign in to comment.