--- import { localizedPath } from '../../i18n/utils'; import type { Locale } from '../../data/site'; import { serviceSlugs, serviceLabels } from '../../data/navigation'; import SectionHeading from '../ui/SectionHeading.astro'; import { t } from '../../i18n/ui'; interface Props { locale: Locale; showAllLink?: boolean; } const { locale, showAllLink = true } = Astro.props; const ui = t(locale); const isRtl = locale === 'ar'; const icons = [ '/images/service-card-1.png', '/images/service-card-2.png', '/images/service-card-3.png', '/images/service-card-4.png', ]; ---
{serviceSlugs.map((slug, i) => (

{serviceLabels[slug][locale]}

{ui.readMore}
))}
{showAllLink && ( )}