11<script setup lang="ts">
2- const socialLinks = [
2+ const socialLinks = computed (() => [
33 {
44 id: ' github' ,
55 href: ' https://repo.npmx.dev' ,
66 icon: ' i-carbon:logo-github' ,
7- titleKey: ' about.get_involved.contribute.title' ,
8- descriptionKey: ' about.get_involved.contribute.description' ,
9- ctaKey: ' about.get_involved.contribute.cta' ,
7+ titleKey: $t ( ' about.get_involved.contribute.title' ) ,
8+ descriptionKey: $t ( ' about.get_involved.contribute.description' ) ,
9+ ctaKey: $t ( ' about.get_involved.contribute.cta' ) ,
1010 },
1111 {
1212 id: ' discord' ,
1313 href: ' https://chat.npmx.dev' ,
1414 icon: ' i-carbon:chat' ,
15- titleKey: ' about.get_involved.community.title' ,
16- descriptionKey: ' about.get_involved.community.description' ,
17- ctaKey: ' about.get_involved.community.cta' ,
15+ titleKey: $t ( ' about.get_involved.community.title' ) ,
16+ descriptionKey: $t ( ' about.get_involved.community.description' ) ,
17+ ctaKey: $t ( ' about.get_involved.community.cta' ) ,
1818 },
1919 {
2020 id: ' bluesky' ,
2121 href: ' https://social.npmx.dev' ,
2222 icon: ' i-simple-icons:bluesky' ,
23- titleKey: ' about.get_involved.follow.title' ,
24- descriptionKey: ' about.get_involved.follow.description' ,
25- ctaKey: ' about.get_involved.follow.cta' ,
23+ titleKey: $t ( ' about.get_involved.follow.title' ) ,
24+ descriptionKey: $t ( ' about.get_involved.follow.description' ) ,
25+ ctaKey: $t ( ' about.get_involved.follow.cta' ) ,
2626 },
27- ]
27+ ])
2828 </script >
2929
3030<template >
@@ -45,16 +45,16 @@ const socialLinks = [
4545 <div class =" flex gap-2" >
4646 <span :class =" link.icon" class =" shrink-0 mt-1 w-5 h-5 text-fg" aria-hidden =" true" />
4747 <span class =" font-medium text-fg" >
48- {{ $t( link.titleKey) }}
48+ {{ link.titleKey }}
4949 </span >
5050 </div >
5151 <p class =" text-sm text-fg-muted leading-relaxed" >
52- {{ $t( link.descriptionKey) }}
52+ {{ link.descriptionKey }}
5353 </p >
5454 <span
5555 class =" text-sm text-fg-muted group-hover:text-fg inline-flex items-center gap-1 mt-auto"
5656 >
57- {{ $t( link.ctaKey) }}
57+ {{ link.ctaKey }}
5858 <span class =" i-carbon:arrow-right rtl-flip w-3 h-3" aria-hidden =" true" />
5959 </span >
6060 </a >
0 commit comments