How to change the Accept-Language header in Chrome
Accept-Language tells a server which languages the browser prefers. Change Chrome’s language order for normal browsing. For a server-side locale test, set a header rule for your staging site.
Set your preferred languages in Chrome
- Open
chrome://settings/languages. Under Preferred languages, add your language and use the menus next to the languages to reorder them. - Reload the page with DevTools open. Under Network, select the request and look for
accept-languagein Request Headers.
Sites may use a saved account preference, a cookie or a language in the URL ahead of this header. The language order for websites and Chrome’s page translation setting are separate controls. Chrome’s language settings · Accept-Language syntax
Test two locales on one staging site
KeenKit Headers is available from the Chrome Web Store and Microsoft Edge Add-ons. Add to Chrome Get it for Edge
- Create a KeenKit Headers profile and select One exact HTTPS origin for your staging site. In Request headers, choose Set for
Accept-Languageand enterfr-CA,fr;q=0.9,en;q=0.8to test Canadian French with French and English fallbacks. - Include the request type you’re testing, select Apply, and review the access request. Reload with DevTools open and check the request header and the returned content. If the server supplies
Content-Language, check that too. - Try
en-CA,en;q=0.9and compare the responses. Pause the profile after the test.
The rule changes what Chrome sends on matching requests. In-page JavaScript still sees the browser’s language settings. Profile values stay on your device until Chrome sends them with a matching request.
The source code is public under the MIT license: github.com/keenkit/headers. Headers privacy policy