Add French translation

Adds site/i18n/fr.js with all 2541 strings, registers Français in the
language list (picked automatically for fr-* browsers), caches it in the
service worker, and runs the full screen tour and the Signal-link check
in French in the tests.
This commit is contained in:
Eliot 2026-10-26 10:50:45 +00:00 • committed by SK0RPIA
parent c76dd4d556
commit fbfbf8deb3
8 changed files with 2558 additions and 5 deletions

View file

@ -389,7 +389,7 @@ test('DKNOG in Copenhagen is on the conference calendar', () => {
});
test('the Signal group is linked from the title screen, the menu and How to play, in every language', () => {
for (const lang of ['en', 'it', 'pt']) {
for (const lang of ['en', 'it', 'pt', 'fr']) {
const { ev, errors } = load(lang === 'en' ? {} : { lang });
const links = (setup) => ev(`(()=>{${setup};return [...document.querySelectorAll('#modal a[href^="https://signal.group/#"]')].map(a=>a.target+'|'+a.rel+'|'+a.textContent.trim()).join('\\n');})()`);
const title = links('showTitle()');