Repository Public
1import type { Locale, SheetInput } from "@/schema";23export interface TemplateDef {4 /** Stable key, kebab-case. */5 id: string;6 title: Record<Locale, string>;7 description: Record<Locale, string>;8 category: "ai" | "finance" | "infrastructure" | "method";9 /** A complete, valid document in the requested language. Called on the server; must be deterministic. */10 build: (locale: Locale) => SheetInput;11}1213/** Picks the string of the requested language. */14export const L = (locale: Locale) => (fr: string, en: string) => (locale === "fr" ? fr : en);15