--- 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.tools[tool.id as keyof typeof strings.tools]; ---
{toolStrings.name}