chore: checkpoint ai search comments and i18n foundation
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user