22import { Icon } from " astro-icon/components" ;
33import Image from " astro/components/Image.astro" ;
44import star from " ../assets/star.svg" ;
5+ import { getLangFromUrl , useTranslations } from " ../i18n/utils" ;
56
67type IconItem = {
78 type: " icon" ;
@@ -15,46 +16,49 @@ type ImageItem = {
1516 text: string ;
1617};
1718
19+ const lang = getLangFromUrl (Astro .url );
20+ const t = useTranslations (lang );
21+
1822const contentData: (IconItem | ImageItem )[] = [
1923 {
2024 type: " icon" ,
2125 iconName: " tabler:infinity" ,
22- text: " Idealne dla freelancerów " ,
26+ text: t ( " iconsSection.perfect " ) ,
2327 },
2428 {
2529 type: " icon" ,
2630 iconName: " tabler:clock" ,
27- text: " Szybki czas realizacji usług " ,
31+ text: t ( " iconsSection.time " ) ,
2832 },
2933 {
3034 type: " icon" ,
3135 iconName: " tabler:infinity" ,
32- text: " Idealne dla freelancerów " ,
36+ text: t ( " iconsSection.perfect " ) ,
3337 },
3438 {
3539 type: " icon" ,
3640 iconName: " tabler:clock" ,
37- text: " Szybki czas realizacji usług " ,
41+ text: t ( " iconsSection.perfect " ) ,
3842 },
3943 {
4044 type: " image" ,
4145 iconName: star ,
42- text: " Idealne dla freelancerów " ,
46+ text: t ( " iconsSection.perfect " ) ,
4347 },
4448 {
4549 type: " icon" ,
4650 iconName: " tabler:clock" ,
47- text: " Szybki czas realizacji usług " ,
51+ text: t ( " iconsSection.time " ) ,
4852 },
4953 {
5054 type: " icon" ,
5155 iconName: " tabler:infinity" ,
52- text: " Idealne dla freelancerów " ,
56+ text: t ( " iconsSection.perfect " ) ,
5357 },
5458 {
5559 type: " icon" ,
5660 iconName: " tabler:clock" ,
57- text: " Szybki czas realizacji usług " ,
61+ text: t ( " iconsSection.time " ) ,
5862 },
5963];
6064---
0 commit comments