Skip to content

Commit 048228d

Browse files
committed
add ja translations for NotFound page
1 parent 6abbd65 commit 048228d

File tree

2 files changed

+48
-6
lines changed

2 files changed

+48
-6
lines changed

i18n/ja/code.json

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,29 @@
3636
"description": "The title of the fallback page when the page crashed"
3737
},
3838
"theme.NotFound.title": {
39-
"message": "ページが見つかりません",
39+
"message": "ページが見つかりませんでした",
4040
"description": "The title of the 404 page"
4141
},
4242
"theme.NotFound.p1": {
43-
"message": "お探しのページが見つかりませんでした",
43+
"message": "お探しのページが見つかりませんでした。ページが移動したか、リンクにエラーがある可能性があります。",
4444
"description": "The first paragraph of the 404 page"
4545
},
4646
"theme.NotFound.p2": {
47-
"message": "このページにリンクしているサイトの所有者にリンクが壊れていることを伝えてください",
47+
"message": "以下の方法をお試しください:",
4848
"description": "The 2nd paragraph of the 404 page"
4949
},
50+
"theme.NotFound.ListItem1": {
51+
"message": "リンクを再度クリックしてください。",
52+
"description": "The first list item of the 404 page"
53+
},
54+
"theme.NotFound.ListItem2": {
55+
"message": "UID2 のページからタイトルやキーワードで検索してください。",
56+
"description": "The second list item of the 404 page"
57+
},
58+
"theme.NotFound.ListItem3": {
59+
"message": "UID2 ドキュメントホームページにアクセスしてください。",
60+
"description": "The third list item of the 404 page"
61+
},
5062
"theme.admonition.note": {
5163
"message": "注記",
5264
"description": "The default label used for the Note admonition (:::note)"

src/theme/NotFound/Content/index.tsx

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import clsx from "clsx";
33
import Translate from "@docusaurus/Translate";
44
import type { Props } from "@theme/NotFound/Content";
55
import Heading from "@theme/Heading";
6+
import Link from "@docusaurus/Link";
67

78
export default function NotFoundContent({ className }: Props): JSX.Element {
89
return (
@@ -22,18 +23,47 @@ export default function NotFoundContent({ className }: Props): JSX.Element {
2223
id="theme.NotFound.p1"
2324
description="The first paragraph of the 404 page"
2425
>
25-
We could not find what you were looking for.
26+
We couldn't find the page you were looking for. The page might
27+
have been moved, or there was an error in the link.
2628
</Translate>
2729
</p>
2830
<p>
2931
<Translate
3032
id="theme.NotFound.p2"
3133
description="The 2nd paragraph of the 404 page"
3234
>
33-
Please contact the owner of the site that linked you to the
34-
original URL and let them know their link is broken.
35+
Here are some things you can do:
3536
</Translate>
3637
</p>
38+
<ul>
39+
<li>
40+
<Translate
41+
id="theme.NotFound.ListItem1"
42+
description="The first list item of the 404 page"
43+
>
44+
Go back and retry the link.
45+
</Translate>
46+
</li>
47+
<li>
48+
<Translate
49+
id="theme.NotFound.ListItem2"
50+
description="The second list item of the 404 page"
51+
>
52+
Search for the document by its title or keywords from any UID2
53+
page.
54+
</Translate>
55+
</li>
56+
<li>
57+
<Link to="/docs/intro">
58+
<Translate
59+
id="theme.NotFound.ListItem3"
60+
description="The third list item of the 404 page"
61+
>
62+
Visit the UID2 documentation home page
63+
</Translate>
64+
</Link>
65+
</li>
66+
</ul>
3767
</div>
3868
</div>
3969
</main>

0 commit comments

Comments
 (0)