Repository Public
1/**2 * =============================================================================3 * SP BOUCHER | SOFTWARE & RESEARCH4 * ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5 * =============================================================================6 *7 * Project : Vrai-Prix8 * File : src/lib/i18n.ts9 * Module : lib10 * Repository : https://git.spboucher.ai/vrai-prix11 * Created : 2026-08-0912 * Last Modified : 2026-08-0913 *14 * Author : Simon-Pierre Boucher15 * Position : Professor of Finance16 * Institution : Université du Québec en Outaouais (UQO)17 * Organization : SP Boucher18 * Website : https://spboucher.ai19 * Git : https://git.spboucher.ai20 *21 * Preferred Contact: contact@spboucher.ai22 * Development : dev@spboucher.ai23 * Support : support@spboucher.ai24 * Security/Admin : admin@spboucher.ai25 *26 * Copyright (c) 202627 * Simon-Pierre Boucher28 * All rights reserved where applicable. This file is governed by the29 * applicable project license, copyright notices and relevant law.30 * Existing third-party rights and notices remain unaffected.31 *32 * License : None specified (no license file in this repository)33 *34 * Do not embed credentials, private keys, access tokens,35 * certificates or confidential personal information.36 *37 * =============================================================================38 * END OF SP BOUCHER SOURCE HEADER39 * =============================================================================40 */4142export type Lang = "fr" | "en";4344const dict = {45 fr: {46 tagline: "La vraie valeur de votre propriété, en toute transparence",47 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.",48 searchPlaceholder: "Entrez une adresse (ex. 861 route Elgin, Saint-Pamphile)",49 estimateBtn: "Estimer",50 manualTitle: "Pas d'adresse ? Décrivez la propriété",51 municipality: "Municipalité",52 propertyType: "Type de propriété",53 floorArea: "Superficie habitable (m²)",54 yearBuilt: "Année de construction",55 landArea: "Superficie du terrain (m²)",56 estimatedValue: "Valeur estimée",57 range: "Fourchette honnête",58 confidence: "Indice de confiance",59 whyTitle: "Pourquoi ce prix ? Le calcul, sans boîte noire",60 modelPart: "Modèle hédonique (LightGBM, 690 000 ventes QC)",61 compsPart: "Comparables ajustés (médiane pondérée)",62 weightModel: "poids du modèle",63 weightComps: "poids des comparables",64 compsTitle: "Comparables utilisés",65 adjTime: "Ajust. marché",66 adjArea: "Ajust. superficie",67 adjAge: "Ajust. âge",68 adjusted: "Prix ajusté",69 sold: "Vendu",70 distance: "Distance",71 weight: "Poids",72 history: "Valeur estimée par année",73 assessed: "Évaluation municipale (rôle 2026)",74 leadTitle: "Recevoir le rapport détaillé (PDF)",75 leadBtn: "M'envoyer le rapport",76 leadOk: "Merci ! Votre rapport sera envoyé sous peu.",77 emailPlaceholder: "votre@courriel.com",78 disclaimer: "Estimation statistique à titre indicatif — ne remplace pas une évaluation professionnelle.",79 unifamilial: "Unifamiliale",80 plex: "Plex (2-5 logements)",81 condo_ou_multi: "Condo / multirésidentiel",82 chalet: "Chalet",83 maison_mobile: "Maison mobile",84 terrain: "Terrain",85 autre: "Autre",86 notFound: "Adresse introuvable",87 dataNote: "Données : rôles d'évaluation foncière du Québec (MAMH) et transactions publiques.",88 confA: "Très fiable",89 confB: "Fiable",90 confC: "Indicative",91 confD: "Peu fiable — marché mince",92 searchNoResult: "Aucun résultat — essayez « numéro rue municipalité »",93 loading: "Calcul en cours…",94 },95 en: {96 tagline: "Your property's true value, fully transparent",97 sub: "Estimates built on 3.7M assessment units and 745k real Québec sales (2021-2026). No black box: we show the math.",98 searchPlaceholder: "Enter an address (e.g. 861 route Elgin, Saint-Pamphile)",99 estimateBtn: "Estimate",100 manualTitle: "No address? Describe the property",101 municipality: "Municipality",102 propertyType: "Property type",103 floorArea: "Living area (m²)",104 yearBuilt: "Year built",105 landArea: "Lot area (m²)",106 estimatedValue: "Estimated value",107 range: "Honest range",108 confidence: "Confidence index",109 whyTitle: "Why this price? The math, no black box",110 modelPart: "Hedonic model (LightGBM, 690k QC sales)",111 compsPart: "Adjusted comparables (weighted median)",112 weightModel: "model weight",113 weightComps: "comparables weight",114 compsTitle: "Comparables used",115 adjTime: "Market adj.",116 adjArea: "Area adj.",117 adjAge: "Age adj.",118 adjusted: "Adjusted price",119 sold: "Sold",120 distance: "Distance",121 weight: "Weight",122 history: "Estimated value by year",123 assessed: "Municipal assessment (2026 roll)",124 leadTitle: "Get the detailed report (PDF)",125 leadBtn: "Send me the report",126 leadOk: "Thanks! Your report is on its way.",127 emailPlaceholder: "you@email.com",128 disclaimer: "Statistical estimate for information only — not a substitute for a professional appraisal.",129 unifamilial: "Single-family",130 plex: "Plex (2-5 units)",131 condo_ou_multi: "Condo / multi-residential",132 chalet: "Cottage",133 maison_mobile: "Mobile home",134 terrain: "Land",135 autre: "Other",136 notFound: "Address not found",137 dataNote: "Data: Québec property assessment rolls (MAMH) and public transactions.",138 confA: "Very reliable",139 confB: "Reliable",140 confC: "Indicative",141 confD: "Low reliability — thin market",142 searchNoResult: "No result — try “number street municipality”",143 loading: "Computing…",144 },145} as const;146147export type TKey = keyof (typeof dict)["fr"];148149export function t(lang: Lang, key: TKey): string {150 return dict[lang][key] ?? dict.fr[key];151}152