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