feat: add i18n files

Signed-off-by: Ryan Wang <i@ryanc.cc>
This commit is contained in:
Ryan Wang
2022-08-01 12:29:02 +08:00
parent 3e2f28b4ff
commit 39df649b96
10 changed files with 161 additions and 115 deletions
+12 -5
View File
@@ -16,11 +16,18 @@ const { title } = Astro.props as Props;
</head>
<body>
<nav class="flex gap-3">
<a href="/" th:href="@{/}">Home</a>
<a href="/post" th:href="@{/post}">Post</a>
<a href="/links" th:href="@{/links}">Links</a>
</nav>
<div class="flex justify-between">
<nav class="flex gap-3">
<a href="/" th:href="@{/}">Home</a>
<a href="/post" th:href="@{/post}">Post</a>
<a href="/links" th:href="@{/links}">Links</a>
</nav>
<div>
<a href="/">默认</a>
<a href="/?language=zh">中文</a>
<a href="/?language=en">英文</a>
</div>
</div>
<slot />
</body>