BlogNational Black Canadians Summit
Bilingual websites for Canadian organizations
Jean Pierre Georges
Same routes, two locales
The National Black Canadians Summit site is the worked example. It is built in Next.js. next-intl serves English and French from the same routes. The programme is one page. English is /en/program. French is /fr/program. The layout, the day navigation, and the path to registration are the same page in both languages.
The language switch changes the locale prefix and stays on the page the visitor is already reading. A shared link can point at the French page, because French has its own address.
A route is unfinished until both prefixes resolve. The Summit site had inherited its routes. The work was to make the journey around those routes one journey: a shared header, a language switch, and a registration page that still looked like the Summit.
A shared layout, strings kept with the locale
The header, the language switch, and the facts a visitor needs before they act belong to the layout. On the Summit site those facts are the dates, the city, and the travel details. When registration was a ticket widget on a blank page, both languages lost the Summit around the button. Putting that page back in the shared layout restored the header and the travel details in English and in French with one implementation.
The strings stay out of that layout. The page reads the locale and renders the messages for it. A spacing correction on the programme page then lands in both languages, because the structure is one structure. The words are the part that changes.
Where the two languages drift
Drift is a translated sentence sitting on a structure that was only finished in one language.
A route that opens in English and fails in French makes the language switch a dead end. The visitor who chose French is the one who finds it.
A label sized for English will break the bar in French. On the Summit site, “Accommodation & Location” had to occupy a set number of lines so it would not break the navigation, and a stay button had to be the same width in both languages. The layout had been measured against the shorter English label. The French line needed the same width and the same number of lines.
A schedule translated as one document hides a missing session. The programme is a set of days. Each English day is paired with the French day. A session added on one side and missing on the other stays visible.
An embedded tool can ignore the page. The Summit’s registration widget kept the English button label on the French page until the locale was passed in before the script loaded. The page can be bilingual and the embed can still speak one language. The page’s job is to know its locale and to hand that locale to anything it mounts.
Decisions to make before the first page
Which locales. For a Canadian public site the pair is English and French. When a ticket platform, a form, or a map asks for a region, French is fr-CA. The site path can still be /fr. Write down the code each system expects, so the page and the tool agree about which French they are speaking.
Which URLs. A prefix (/en, /fr) gives each language an address. The Summit uses those prefixes. The switch is a change of address. A cookie alone leaves both languages on one URL, and a shared link cannot point at the French page.
When a page is allowed to ship. A page ships when both locales have the route, the title, and the primary action. On the Summit site that included the programme, the contact form, and registration.
Where the strings live. next-intl keeps them with the locale, outside the page markup, so the layout stays one component. If the French copy is a follow-up task, the page will launch in one language and the second will trail it. Treat the pair of strings as part of the page, the way the Summit treats a pair of programme days.
What it looks like when it holds
A visitor can arrive in either language, read the same Summit, and register with the site still recognizably itself. The header stays. The language switch stays on the page they are on. The button they came to press says the right thing.
That is the standard the Summit site was built to. The live site is blackcanadiansummit.ca. The project page records how the registration path, the widths, and the widget were brought into line with it.