i18n: About page fully internationalized
CI / lint (push) Failing after 21s
CI / test (push) Has been skipped
CI / build (push) Has been skipped
CI / e2e (push) Has been skipped
CI / security (push) Failing after 10s

HTML:
- tagline: data-i18n-html for line break support
- stats labels: about.files instead of palette.mode_files
- built_with, last_delivery, made_with: data-i18n spans

config.js:
- Months array: 12 French months -> t('month.*')
- Jokes array: 10 French jokes -> t('about.joke_*')
- Joke display: removed hardcoded «» wrappers

Locales:
- +34 new keys (months, jokes, about labels)
- 1231 keys in each locale
This commit is contained in:
2026-06-19 11:08:11 -04:00
parent 093d04b7ca
commit 7cdb9ca5a1
4 changed files with 67 additions and 17 deletions
+12 -12
View File
@@ -1517,25 +1517,25 @@ function initAboutModal() {
// Build date (today)
var now = new Date();
var months = ['Janvier','Fevrier','Mars','Avril','Mai','Juin','Juillet','Aout','Septembre','Octobre','Novembre','Decembre'];
var months = [t('month.january'),t('month.february'),t('month.march'),t('month.april'),t('month.may'),t('month.june'),t('month.july'),t('month.august'),t('month.september'),t('month.october'),t('month.november'),t('month.december')];
var dateEl = document.getElementById('about-build-date');
if (dateEl) dateEl.textContent = months[now.getMonth()] + ' ' + now.getFullYear();
// Random joke
var jokes = [
'0 bug connu. Les autres sont timides.',
'Compile du premier coup. (Sauf le lundi matin.)',
'Ecrit par un humain. Probablement.',
'Aucun LLM n\'a ete blesse durant ce developpement.',
'Quand ca marche, on appelle ca une feature.',
'CSS: 90% du temps de dev, 10% du code.',
'Dark mode active depuis la naissance du projet.',
'Ca marche sur ma machine™',
'Techniquement, tout est un edge case.',
'Le CSS de ce panneau a pris plus de temps que le backend.'
t('about.joke_0'),
t('about.joke_1'),
t('about.joke_2'),
t('about.joke_3'),
t('about.joke_4'),
t('about.joke_5'),
t('about.joke_6'),
t('about.joke_7'),
t('about.joke_8'),
t('about.joke_9')
];
var jokeEl = document.getElementById('about-joke');
if (jokeEl) jokeEl.textContent = '« ' + jokes[Math.floor(Math.random() * jokes.length)] + ' »';
if (jokeEl) jokeEl.textContent = jokes[Math.floor(Math.random() * jokes.length)];
}
}