feat: dynamic html lang attribute from JSON identity.lang field (defaults to fr)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
3c97378c46
commit
19c461de40
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue