chore: checkpoint ai search comments and i18n foundation

This commit is contained in:
2026-03-28 17:17:31 +08:00
parent d18a709987
commit ec96d91548
71 changed files with 9494 additions and 423 deletions

View File

@@ -1,4 +1,5 @@
---
import { getI18n } from '../lib/i18n';
import type { FriendLink } from '../lib/types';
interface Props {
@@ -6,6 +7,7 @@ interface Props {
}
const { friend } = Astro.props;
const { t } = getI18n(Astro);
---
<a
@@ -58,11 +60,11 @@ const { friend } = Astro.props;
<span>{friend.category}</span>
</span>
) : (
<span class="text-xs text-[var(--text-tertiary)] font-mono">external link</span>
<span class="text-xs text-[var(--text-tertiary)] font-mono">{t('friendCard.externalLink')}</span>
)}
<span class="terminal-link-arrow">
<span>访问</span>
<span>{t('common.visit')}</span>
<i class="fas fa-arrow-up-right-from-square text-xs"></i>
</span>
</div>