Skip to content

Commit 9d7e59e

Browse files
add href lang tags (#906)
1 parent a62bf14 commit 9d7e59e

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/app/sitemap.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,35 @@ export default function sitemap(): MetadataRoute.Sitemap {
66
{
77
url: BASE_URL,
88
lastModified: new Date(),
9+
alternates: {
10+
languages: {
11+
en: `${BASE_URL}/`,
12+
ja: `${BASE_URL}/ja/`,
13+
"x-default": `${BASE_URL}/`,
14+
},
15+
},
916
},
1017
{
1118
url: `${BASE_URL}/introduction`,
1219
lastModified: new Date(),
20+
alternates: {
21+
languages: {
22+
en: `${BASE_URL}/introduction`,
23+
ja: `${BASE_URL}/ja/introduction`,
24+
"x-default": `${BASE_URL}/introduction`,
25+
},
26+
},
1327
},
1428
{
1529
url: `${BASE_URL}/libraries`,
1630
lastModified: new Date(),
31+
alternates: {
32+
languages: {
33+
en: `${BASE_URL}/libraries`,
34+
ja: `${BASE_URL}/ja/libraries`,
35+
"x-default": `${BASE_URL}/libraries`,
36+
},
37+
},
1738
},
1839
];
1940
}

0 commit comments

Comments
 (0)