// Auteur : Simon-Pierre Boucher — contact@spboucher.ai export type Lang = "fr" | "en"; const dict = { fr: { tagline: "La vraie valeur de votre propriété, en toute transparence", sub: "Estimation basée sur 3,7 millions d'unités d'évaluation et 745 000 ventes réelles au Québec (2021-2026). Pas de boîte noire : on vous montre le calcul.", searchPlaceholder: "Entrez une adresse (ex. 861 route Elgin, Saint-Pamphile)", estimateBtn: "Estimer", manualTitle: "Pas d'adresse ? Décrivez la propriété", municipality: "Municipalité", propertyType: "Type de propriété", floorArea: "Superficie habitable (m²)", yearBuilt: "Année de construction", landArea: "Superficie du terrain (m²)", estimatedValue: "Valeur estimée", range: "Fourchette honnête", confidence: "Indice de confiance", whyTitle: "Pourquoi ce prix ? Le calcul, sans boîte noire", modelPart: "Modèle hédonique (LightGBM, 690 000 ventes QC)", compsPart: "Comparables ajustés (médiane pondérée)", weightModel: "poids du modèle", weightComps: "poids des comparables", compsTitle: "Comparables utilisés", adjTime: "Ajust. marché", adjArea: "Ajust. superficie", adjAge: "Ajust. âge", adjusted: "Prix ajusté", sold: "Vendu", distance: "Distance", weight: "Poids", history: "Valeur estimée par année", assessed: "Évaluation municipale (rôle 2026)", leadTitle: "Recevoir le rapport détaillé (PDF)", leadBtn: "M'envoyer le rapport", leadOk: "Merci ! Votre rapport sera envoyé sous peu.", emailPlaceholder: "votre@courriel.com", disclaimer: "Estimation statistique à titre indicatif — ne remplace pas une évaluation professionnelle.", unifamilial: "Unifamiliale", plex: "Plex (2-5 logements)", condo_ou_multi: "Condo / multirésidentiel", chalet: "Chalet", maison_mobile: "Maison mobile", terrain: "Terrain", autre: "Autre", notFound: "Adresse introuvable", dataNote: "Données : rôles d'évaluation foncière du Québec (MAMH) et transactions publiques.", confA: "Très fiable", confB: "Fiable", confC: "Indicative", confD: "Peu fiable — marché mince", searchNoResult: "Aucun résultat — essayez « numéro rue municipalité »", loading: "Calcul en cours…", }, en: { tagline: "Your property's true value, fully transparent", sub: "Estimates built on 3.7M assessment units and 745k real Québec sales (2021-2026). No black box: we show the math.", searchPlaceholder: "Enter an address (e.g. 861 route Elgin, Saint-Pamphile)", estimateBtn: "Estimate", manualTitle: "No address? Describe the property", municipality: "Municipality", propertyType: "Property type", floorArea: "Living area (m²)", yearBuilt: "Year built", landArea: "Lot area (m²)", estimatedValue: "Estimated value", range: "Honest range", confidence: "Confidence index", whyTitle: "Why this price? The math, no black box", modelPart: "Hedonic model (LightGBM, 690k QC sales)", compsPart: "Adjusted comparables (weighted median)", weightModel: "model weight", weightComps: "comparables weight", compsTitle: "Comparables used", adjTime: "Market adj.", adjArea: "Area adj.", adjAge: "Age adj.", adjusted: "Adjusted price", sold: "Sold", distance: "Distance", weight: "Weight", history: "Estimated value by year", assessed: "Municipal assessment (2026 roll)", leadTitle: "Get the detailed report (PDF)", leadBtn: "Send me the report", leadOk: "Thanks! Your report is on its way.", emailPlaceholder: "you@email.com", disclaimer: "Statistical estimate for information only — not a substitute for a professional appraisal.", unifamilial: "Single-family", plex: "Plex (2-5 units)", condo_ou_multi: "Condo / multi-residential", chalet: "Cottage", maison_mobile: "Mobile home", terrain: "Land", autre: "Other", notFound: "Address not found", dataNote: "Data: Québec property assessment rolls (MAMH) and public transactions.", confA: "Very reliable", confB: "Reliable", confC: "Indicative", confD: "Low reliability — thin market", searchNoResult: "No result — try “number street municipality”", loading: "Computing…", }, } as const; export type TKey = keyof (typeof dict)["fr"]; export function t(lang: Lang, key: TKey): string { return dict[lang][key] ?? dict.fr[key]; }