docs: add Chinese translation (#1112)

* docs: add Chinese translation

* docs: translate checkout-answers.md

* docs: guide、leaderboard translate

* docs: translate 1-projection
This commit is contained in:
Enoch Gao
2024-09-24 03:16:56 +08:00
committed by GitHub
parent 23226c2dc6
commit b188b6f34f
16 changed files with 638 additions and 5 deletions

View File

@@ -3,7 +3,8 @@ import type { Props } from '@astrojs/starlight/props';
const {lang, locale} = Astro.props;
const shortLang = lang.split('-')[0];
// Chinese needs to `zh-CN`
// const shortLang =lang.split('-')[0];
---
<div class="separator"></div>
@@ -19,7 +20,7 @@ const shortLang = lang.split('-')[0];
data-emit-metadata="0"
data-input-position="bottom"
data-theme="preferred_color_scheme"
data-lang={shortLang}
data-lang={lang}
data-loading="lazy"
crossorigin="anonymous"
async>