mirror of
https://github.com/chaitin/MonkeyCode.git
synced 2026-12-06 05:07:25 +08:00
fix(landing): link English legal translations to their Simplified Chinese originals
This commit is contained in:
1 parent
19523f4e09
commit
41ff7599a5
1 file changed
+3
@@ -2,6 +2,7 @@
|
||||
import BaseLayout from '../../layouts/BaseLayout.astro';
|
||||
import LegalNav from '../LegalNav.astro';
|
||||
import { ActionButton } from '../ActionButton';
|
||||
import { pageCopy } from '../../i18n/page';
|
||||
|
||||
interface Props {
|
||||
title: string;
|
||||
@@ -12,6 +13,7 @@ interface Props {
|
||||
|
||||
const { title, description, sections, effectiveDate } = Astro.props;
|
||||
const document = Astro.params.document;
|
||||
const { t } = pageCopy(Astro.params.lang);
|
||||
const isServiceAgreement = document === 'user-service';
|
||||
const home = import.meta.env.BASE_URL + 'en/';
|
||||
const backLink = isServiceAgreement ? home : home + 'user-service/';
|
||||
@@ -29,6 +31,7 @@ const backLabel = isServiceAgreement ? 'Back to homepage' : 'Back to Service Agr
|
||||
<h1>MonkeyAI {title}</h1>
|
||||
<ActionButton client:load href={backLink} label={backLabel} icon="arrow-left" variant="outline" />
|
||||
</div>
|
||||
<p>{t('本译本仅供参考,不替代中文原文。')} <a href={import.meta.env.BASE_URL + document + '/'} hreflang="zh-CN">{t('查看简体中文原文')}</a></p>
|
||||
<slot name="lead" />
|
||||
{effectiveDate && <p class="legal-updated">Effective and last updated {effectiveDate}</p>}
|
||||
</header>
|
||||
|
||||
Reference in new issue
Block a user