A bilingual site test checks that the English and French versions of a site serving Canada open for the right visitor and with the right counterpart. The site picks the language from the Accept-Language header, a cookie or the IP address. Every page needs a counterpart in the other language, and the two pages must point to each other with hreflang. One missing counterpart or one wrong redirect sends the visitor to a page in the wrong language. This post covers the language redirect, hreflang pairing, the language cookie, Quebec behavior and the CAD price format.
The language redirect
On most bilingual sites the root URL / is a decision point. The site looks at the request and redirects the visitor to /en-ca/ or /fr-ca/. The first input to that decision is the Accept-Language header the browser sends.
The header is a list of preferences. The line fr-CA,fr;q=0.9,en;q=0.8 says "Canadian French first, then generic French, then English". A language without a q value has a weight of 1. The site sorts the list by weight and picks the first language it can serve.
The first test command prints the redirect target. Run it with both language headers and once with no header:
curl -sS -o /dev/null \
-x http://user:pass@pr.proxynet.io:8000 \
-H "Accept-Language: fr-CA,fr;q=0.9,en;q=0.8" \
-w "%{http_code} %{redirect_url}\n" \
https://www.example.com/On our test site the three requests gave these results:
Accept-Language | Result |
|---|---|
en-CA,en;q=0.9 | 302 → /en-ca/ |
fr-CA,fr;q=0.9,en;q=0.8 | 302 → /fr-ca/ |
| No header | 302 → /en-ca/ |
The no-header row matters. Google's crawler sends its requests without an Accept-Language header. Its default IP addresses also appear to be in the US. If the root URL goes nowhere or returns an error for a request without the header, report it to the team.
The response should also carry a Vary: Accept-Language header. Without it, a cache can serve the first visitor's language to everyone after.
hreflang and x-default
hreflang is the annotation that tells search engines about a page's counterparts in other languages. Each version lists itself and all its counterparts. For Canada the typical block is three lines:
<link rel="alternate" hreflang="en-ca" href="https://www.example.com/en-ca/">
<link rel="alternate" hreflang="fr-ca" href="https://www.example.com/fr-ca/">
<link rel="alternate" hreflang="x-default" href="https://www.example.com/">The value is an ISO 639-1 language code plus an optional ISO 3166-1 country code. The country code cannot stand alone. Here is the trap: hreflang="ca" does not mean Canada, it is the language code for Catalan. Case does not matter, so fr-CA and fr-ca read the same.
x-default is the URL to show when no version matches the visitor's language. On a bilingual site it is usually the redirecting root URL or a language picker page.
The pairing must go both ways. If page A points to B, B must point back to A, or Google ignores both annotations. This short loop pulls every hreflang URL from a page and prints its status code:
P=http://user:pass@pr.proxynet.io:8000
for u in $(curl -sS -x "$P" https://www.example.com/en-ca/shipping \
| grep -o 'hreflang="[^"]*" href="[^"]*"' \
| sed 's/.*href="\([^"]*\)"/\1/'); do
curl -sS -o /dev/null -x "$P" -w "%{http_code} $u\n" "$u"
doneOn our test site the English shipping page listed /fr-ca/livraison as its counterpart. The loop printed 404 for that URL. The French page had never been written. If you see any code other than 200, the counterpart is either missing or its URL is wrong.
Language switcher and cookie
The language the visitor chose beats both the header and the IP. MDN also treats the Accept-Language header as a hint only. The server should not override the user's explicit language choice. Most sites store that choice in a cookie.
The goal of the test is to see that the choice sticks. While the browser asks for English, pick French from the language switcher, then go back to the root URL:
curl -sS -o /dev/null -c jar.txt \
-x http://user:pass@pr.proxynet.io:8000 \
-H "Accept-Language: en-CA" \
"https://www.example.com/lang?set=fr-ca"
curl -sS -o /dev/null -b jar.txt \
-x http://user:pass@pr.proxynet.io:8000 \
-H "Accept-Language: en-CA" \
-w "%{http_code} %{redirect_url}\n" \
https://www.example.com/The switcher URL depends on your site, so use the link you click in the browser. On our test site the second request went to /fr-ca/. The header said English, but the cookie won. In jar.txt, check the cookie's Path value and expiry date. If the cookie is only valid on the /fr-ca/ path, the root URL never sees the choice. The root response's Vary header should also include Cookie.
Requests from Quebec
Some sites guess the language from the IP address. A geolocation database maps the IP to a province, and the site opens French for visitors from Quebec. That rule also sends a Montreal visitor with an English browser to French.
To see the behavior, use two exits: one in Montreal, one in Toronto. Send Accept-Language: en-CA with both requests. Residential Proxy offers country and city targeting. The available Canadian cities are listed on the Canada location page.
On our test site we simulated the province with a header. The result:
| Simulated province | Accept-Language | Result |
|---|---|---|
| Quebec | en-CA | /fr-ca/ |
| Ontario | en-CA | /en-ca/ |
Which language opens first is your team's decision. The test shows the decision is applied consistently. Check that the order is cookie, then header, then IP last. On a site that guesses from the IP, look at two things. The French page should show a link to switch to English. Once the switch is chosen, the cookie should hold on the Quebec exit too.
The city label is approximate. The target site may place a Montreal exit in another province, so match the result against the site's own location data. We explain how the label is assigned in How Does Country and City Targeting Work in a Proxy?.
CAD price format
The same Canadian dollar amount is written differently in the two languages. In English the symbol comes first and the thousands separator is a comma. In French the symbol comes last and the decimal separator is a comma. Node 24's Intl.NumberFormat output was:
| Locale | Output | What it shows |
|---|---|---|
en-CA | $1,299.00 | Correct English format |
fr-CA | 1 299,00 $ | Correct French format |
en-US | CA$1,299.00 | Page formatted with a US locale |
fr-FR | 1 299,00 $CA | Page formatted with a France locale |
The last two rows are warning signs. If you see CA$ or $CA, the page formats prices with a non-Canadian locale.
The spaces in the French format are not ordinary spaces. In our test both spaces in the fr-CA output were non-breaking spaces (U+00A0). A grep written with a normal space did not find the price. Use this command to make the spaces visible:
curl -sS -x http://user:pass@pr.proxynet.io:8000 \
https://www.example.com/fr-ca/ \
| grep -o 'class="price">[^<]*' \
| sed 's/\xc2\xa0/[NBSP]/g'The output should look like 1[NBSP]299,00[NBSP]$. If you see ordinary spaces, the price may have been typed by hand. In that case the amount and the symbol can break onto separate lines at the end of a line.
Mixed language and checklist
Mixed language is text from the other language left in a version. It shows up most often in buttons, form errors, the cookie banner and email templates. On the French page of our test site an Add to cart button had been left behind.
The first check is the page's language declaration. The <html lang> value and the Content-Language header should match the page language:
curl -sS -D - -x http://user:pass@pr.proxynet.io:8000 \
https://www.example.com/fr-ca/ \
| grep -ioE '^content-language:.*|<html lang="[^"]*"'For the text check, search the French page for common English button words. A short list like grep -oiE ">(add to cart|checkout|sign in)<" catches most leftovers. Then do a visual check with screenshots. We cover the browser profile and screenshot setup in How to Test a Site With a Türkiye IP, and the same setup works for Canada.
| Check | Tool | Expected |
|---|---|---|
| Root redirect | curl -w "%{redirect_url}" | en-CA → /en-ca/, fr-CA → /fr-ca/ |
| No-header request | curl, no header | 302 to the default language |
hreflang counterparts | curl loop | Every counterpart 200, both ways |
| Language cookie | curl -c / -b | Cookie overrides the header |
| Quebec exit | Montreal and Toronto | Language per the rule, switch link |
| Price format | sed with [NBSP] | $1,299.00 and 1 299,00 $ |
| Language declaration | <html lang> | en-CA or fr-CA |
| Mixed language | grep + screen | No text from the other language |
Run the list separately for both languages on every release. If a page changed in only one language, check its counterpart too.
Debugging
Most errors come from the pairing or from the order of the decision.
- A French header opened the English page. The site may not recognize the
fr-CAtag. Addfrto the header and try again. - An
hreflangURL returned404. The counterpart page does not exist or its name was translated. Fix the URL to the site's real path. - The language choice is forgotten at the root URL. The cookie's
Pathvalue is too narrow. It should bePath=/. - The switch does not work on the Quebec exit. The site applies the IP guess before the cookie. Change the order.
- The price shows
$CA. Formatting usesfr-FR. Passfr-CA. - curl returned
407. The username or password is wrong. If the password contains@, write%40.
On Windows, type curl.exe and put the commands on a single line. You can use Git Bash for grep and sed.
How we tested
We ran the commands on December 3, 2026, on Windows 11, inside Git Bash: curl 8.23.0, GNU grep 3.0, GNU sed 4.9, Node 24.22. The setup had two local parts. The first was an HTTP proxy that required Basic authentication and logged every request. The second was a test site with /en-ca/ and /fr-ca/ versions. The site picked the language from the Accept-Language header, a cookie and, in a test mode, a header carrying the province. A real Canadian IP and real geolocation were not part of the test. In the local test the target was HTTP, not HTTPS. The price formats are Node 24's Intl output.
The bottom line
Request the root URL with both language headers and with none, confirm every hreflang counterpart returns 200, and check that the language cookie wins at the root URL. The general approach to localization testing is on our localization testing page. Above all, check the counterparts: Google ignores a one-way hreflang line, and a visitor from search can land on a page in the wrong language.
Sources
- Tell Google about localized versions of your page: developers.google.com
- How Google crawls locale-adaptive pages: developers.google.com
- Accept-Language header: developer.mozilla.org
- Intl.NumberFormat: developer.mozilla.org
Frequently asked questions
What hreflang code should I use for Canada?
en-ca and fr-ca. The first part is the ISO 639-1 language code, the second the ISO 3166-1 country code. The country code cannot stand alone. If you write ca, it reads as Catalan, not Canada. Case does not matter. Every page should list itself, its counterpart and an x-default line.
Which page should x-default point to?
The page to open when no version matches the visitor's language. On a bilingual Canadian site this is usually the redirecting root URL or a picker page that offers both languages. The x-default URL should also return 200 or a consistent redirect, never 404. Both versions should point this line to the same URL.
Should visitors from Quebec get French automatically?
That is your team's decision. The test's job is to show the decision is applied consistently. If French opens automatically, the page should show a link to switch to English, and the choice should be stored in a cookie. On the next visit the cookie should come before the IP guess. Compare Montreal and Toronto exits with the same Accept-Language header to see the behavior.
Why is there no normal space in French prices?
Because the Canadian French format uses non-breaking spaces. In our test, the thousands separator and the space before the symbol in fr-CA Intl.NumberFormat output were both U+00A0. This character keeps the amount and the symbol from splitting at a line end. A test that searches with a normal space will not find the price. Make the spaces visible with sed.
Does a proxy change the Accept-Language header?
No. A proxy only changes the exit IP. Your browser or curl sends the Accept-Language header. For a Canada test, set the header separately with -H "Accept-Language: fr-CA". In the browser, move Canadian French or Canadian English to the top of the language preferences. In our test the proxy did not touch the header and passed it to the target as is.
How do I find missing French pages?
By pulling the hreflang URLs from the English pages and checking their status codes. Every English page should point to its French counterpart, and that URL should return 200. A counterpart that returns 404 is a missing page. If there is no counterpart line at all, the page may not have been translated. If the site has a sitemap, also compare the URL counts in the two languages.




