Files
cv-generator/js/i18n/locales/en.json
T
stanig2106 4e9746c308 feat: ajoute le système i18n frontend (FR/EN)
- 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)
2026-04-05 22:43:44 +01:00

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"
}