import { Route } from '@angular/router'; // Tab titles per route — marked with `$localize` so each locale's // bundle ships its own. The accessibility statement now lives at the // single canonical path `/accessibility` (per ADR-0019, replacing the // previous `/accessibility` + `/accessibilite` pair). const homeTitle = $localize`:@@route.home.title:APF Portal`; const accessibilityTitle = $localize`:@@route.accessibility.title:Accessibility statement · APF Portal`; export const appRoutes: Route[] = [ { path: '', pathMatch: 'full', loadComponent: () => import('./pages/home/home').then((m) => m.Home), title: homeTitle, }, // RGAA + ADR-0016: the accessibility statement is reachable from // `/accessibility` in every locale. Content is i18n-marked so the // per-locale bundle ships the right copy automatically. { path: 'accessibility', loadComponent: () => import('./pages/accessibility/accessibility').then((m) => m.AccessibilityStatement), title: accessibilityTitle, }, // Backward-compat: the historical French path redirects to the // canonical one. Bookmarks and existing inbound links keep working. // Drops out of the codebase once analytics confirm no traffic. { path: 'accessibilite', redirectTo: 'accessibility', pathMatch: 'full', }, ];