From 70d86ff096a5f7ebe2bd75791b5fac865598b80b Mon Sep 17 00:00:00 2001
From: Jorge Marcelo Risco <61189874+jorgemrisco@users.noreply.github.com>
Date: Sun, 24 Mar 2024 16:40:01 +0000
Subject: [PATCH] i18n: pt-BR translation (#1024)
---
quartz/components/pages/404.tsx | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/quartz/components/pages/404.tsx b/quartz/components/pages/404.tsx
index c276f56..4ef1b91 100644
--- a/quartz/components/pages/404.tsx
+++ b/quartz/components/pages/404.tsx
@@ -1,10 +1,11 @@
-import { QuartzComponentConstructor } from "../types"
+import { i18n } from "../../i18n"
+import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } from "../types"
-function NotFound() {
+const NotFound: QuartzComponent = ({ cfg }: QuartzComponentProps) => {
return (
<article class="popover-hint">
<h1>404</h1>
- <p>Either this page is private or doesn't exist.</p>
+ <p>{i18n(cfg.locale).pages.error.notFound}</p>
</article>
)
}
--
Gitblit v1.10.0