diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-07-06 04:53:05 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-07-06 04:54:21 +0300 |
| commit | d36a6ded3bbc623a3fcad3c6e45b7b22ae9b6267 (patch) | |
| tree | 2777d83cbb67ebc2cabd6bffe5e22432c490f62b /website/src/components/SiteTitle.astro | |
| parent | b04c6496a8c08059b8cc83ab29a51023f16c76cd (diff) | |
feat(website): add japanese and simplified chinese docs with i18n, translation issue flow
Diffstat (limited to 'website/src/components/SiteTitle.astro')
| -rw-r--r-- | website/src/components/SiteTitle.astro | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/website/src/components/SiteTitle.astro b/website/src/components/SiteTitle.astro index f6a3b7d0..576e7635 100644 --- a/website/src/components/SiteTitle.astro +++ b/website/src/components/SiteTitle.astro @@ -1,7 +1,8 @@ --- -const { siteTitle, siteTitleHref } = Astro.locals.starlightRoute; +const { siteTitle, siteTitleHref, locale } = Astro.locals.starlightRoute; const isPreview = Astro.url.pathname === '/docs/preview/' || Astro.url.pathname.startsWith('/docs/preview/'); -const docsHref = isPreview ? '/docs/preview/' : '/docs/'; +const localePrefix = locale ? `/${locale}` : ''; +const docsHref = isPreview ? '/docs/preview/' : `${localePrefix}/docs/`; --- <div class="title-row sl-flex"> |
