--- import { api } from "../api/dynamic"; import type { Tool } from "../constants/tools"; import { Heading } from "./Heading"; import { LinkI18n } from "./LinkI18n"; interface Props { tool: Tool; locale: string; minor?: boolean; } const { locale, tool, minor } = Astro.props; const strings = await api.strings(locale); const toolStrings = strings.website.tools[ (tool.strings ?? tool.id) as keyof typeof strings.website.tools ]; ---
{toolStrings.name}