mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 15:19:01 +02:00
feat(website/i18n): translate 404
This commit is contained in:
parent
b129349236
commit
d978c38b80
@ -138,5 +138,9 @@
|
|||||||
"way_reports": "Report bugs via <Link>GitHub issues</Link>.",
|
"way_reports": "Report bugs via <Link>GitHub issues</Link>.",
|
||||||
"way_document": "Improve the documentation by informing us on gaps in the documentation or contributing guides, FAQs or tutorials.",
|
"way_document": "Improve the documentation by informing us on gaps in the documentation or contributing guides, FAQs or tutorials.",
|
||||||
"way_market": "Spread the word: Share Trilium Notes with friends, or on blogs and social media."
|
"way_market": "Spread the word: Share Trilium Notes with friends, or on blogs and social media."
|
||||||
|
},
|
||||||
|
"404": {
|
||||||
|
"title": "404: Not Found",
|
||||||
|
"description": "The page you were looking for could not be found. Maybe it was deleted or the URL is incorrect."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
import Section from "../components/Section.js";
|
import Section from "../components/Section.js";
|
||||||
import { usePageTitle } from "../hooks.js";
|
import { usePageTitle } from "../hooks.js";
|
||||||
|
import { t } from "../i18n.js";
|
||||||
import "./_404.css";
|
import "./_404.css";
|
||||||
|
|
||||||
export function NotFound() {
|
export function NotFound() {
|
||||||
usePageTitle("404");
|
usePageTitle(t("404.title"));
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Section title="404: Not Found" className="section-404">
|
<Section title={t("404.title")} className="section-404">
|
||||||
The page you were looking for could not be found. Maybe it was deleted or the URL is incorrect.
|
{t("404.description")}
|
||||||
</Section>
|
</Section>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user