diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index d24837d..ac1e081 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -1150,6 +1150,10 @@ export default function App() { // "What's new": the changelog for the version(s) since the operator last ran, // shown once on the first launch after an update (EN/FR per the UI language). const [whatsNew, setWhatsNew] = useState | null>(null); + // Which language the What's-new modal shows — defaults to the UI language but + // toggleable, so a French operator running the English UI can still read it. + const [clLang, setClLang] = useState<'en' | 'fr'>(lang); + useEffect(() => { setClLang(lang); }, [lang]); useEffect(() => { GetWhatsNew().then((e: any) => { if (Array.isArray(e) && e.length) setWhatsNew(e); }).catch(() => {}); }, []); @@ -4159,7 +4163,15 @@ export default function App() {

{t('whatsnew.title')}

- +
+ {(['en', 'fr'] as const).map((l) => ( + + ))} +
+
{whatsNew.map((e) => ( @@ -4169,7 +4181,7 @@ export default function App() { {e.date && {e.date}}
    - {(lang === 'fr' ? e.fr : e.en).map((line, i) => ( + {(clLang === 'fr' ? e.fr : e.en).map((line, i) => (
  • {line}