KeenKit Headers

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

  1. Open chrome://settings/languages. Under Preferred languages, add your language and use the menus next to the languages to reorder them.
  2. Reload the page with DevTools open. Under Network, select the request and look for accept-language in 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

  1. Create a KeenKit Headers profile and select One exact HTTPS origin for your staging site. In Request headers, choose Set for Accept-Language and enter fr-CA,fr;q=0.9,en;q=0.8 to test Canadian French with French and English fallbacks.
  2. 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.
  3. Try en-CA,en;q=0.9 and 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