From d36a6ded3bbc623a3fcad3c6e45b7b22ae9b6267 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Mon, 6 Jul 2026 04:53:05 +0300 Subject: feat(website): add japanese and simplified chinese docs with i18n, translation issue flow --- website/src/components/Banner.astro | 48 +++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 website/src/components/Banner.astro (limited to 'website/src/components/Banner.astro') diff --git a/website/src/components/Banner.astro b/website/src/components/Banner.astro new file mode 100644 index 00000000..8a4bad22 --- /dev/null +++ b/website/src/components/Banner.astro @@ -0,0 +1,48 @@ +--- +const { entry, locale, isFallback } = Astro.locals.starlightRoute; +const { banner } = entry.data; + +const issuesUrl = 'https://github.com/ogulcancelik/herdr/issues/new?template=translation.yml'; +const translationNotices = { + ja: `このページの翻訳は LLM によって生成されています。誤りに気づいた場合は GitHub で issue を開いてお知らせください。`, + 'zh-cn': `本页面的翻译由 LLM 生成。如果你发现翻译有误,请在 GitHub 上提交 issue 告诉我们。`, +}; +const translationNotice = locale && !isFallback ? translationNotices[locale] : undefined; +--- + +{banner &&
} +{translationNotice && ( +
+)} + + -- cgit v1.2.3