From 19c461de40c5d42c9712a17844e8daa8f3fc65a1 Mon Sep 17 00:00:00 2001 From: "LIABEUF, Stephane (External)" Date: Mon, 18 May 2026 03:16:11 +0200 Subject: [PATCH] feat: dynamic html lang attribute from JSON identity.lang field (defaults to fr) Co-Authored-By: Claude Sonnet 4.6 --- index.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.html b/index.html index 584da58..f9752f2 100644 --- a/index.html +++ b/index.html @@ -3359,6 +3359,9 @@ const infraBtn = document.getElementById('infraBtn'); if (infraBtn && cvParam) infraBtn.href = `infrastructure.html?cv=${cvParam}`; + // Lang dynamique depuis le JSON (défaut : fr) + document.documentElement.lang = data.identity.lang || 'fr'; + // Restaurer le thème sauvegardé const saved = localStorage.getItem('cv-theme'); if (saved && ['cyberpunk','bd','itpro','cgi'].includes(saved)) setTheme(saved);