4e9746c308
- Crée js/i18n/i18n.js : module central avec t(), getLocale(), setLocale() - Crée js/i18n/locales/fr.json et en.json : traductions FR et EN - Crée js/i18n/applyTranslations.js : applique les data-i18n au DOM - Crée js/i18n/langSwitcher.js : sélecteur de langue (boutons FR/EN) - Modifie index.html : ajoute les attributs data-i18n sur tous les textes - Modifie js/main.js : intègre i18n et relance l'application des traductions - Modifie css/form.css : styles pour le sélecteur de langue - Persistance de la langue dans localStorage (clé cv_lang)
21 lines
556 B
JSON
21 lines
556 B
JSON
{
|
|
"header": {
|
|
"title": "CV Generator",
|
|
"subtitle": "Fill in your details to generate your CV"
|
|
},
|
|
"form": {
|
|
"nom": "Last name",
|
|
"nom_placeholder": "Smith",
|
|
"prenom": "First name",
|
|
"prenom_placeholder": "John",
|
|
"email": "Email",
|
|
"email_placeholder": "john.smith@email.com",
|
|
"titre": "Job title",
|
|
"titre_placeholder": "Full Stack Developer",
|
|
"submit": "Generate my CV"
|
|
},
|
|
"success": "CV ready to be generated for {prenom} {nom}!",
|
|
"footer": "CV Generator © 2026",
|
|
"lang_switcher_label": "Language"
|
|
}
|