Closed michalvadak closed 1 year ago
This should normally already be sent by the browser... beside that, you can extend the headers via customHeaders... etc...
The i18next-http-backend
isn't sending the Accept-language
header by default...
I'm talking about the options
parameter
Not the i18next-http-backend modules sets that header, but your browser will do it. Check the network tab in your browser's dev tools and inspect the request.
I just did and it's not there
Here the proof:
Just tried this example: https://github.com/i18next/i18next-http-backend/tree/master/example/jquery
You see The Accept-Language
header is set to: it-IT,it;q=0.9,de;q=0.8,en-US;q=0.7,en;q=0.6
Yeah okay... now it's there but the language is incorrect
The language there is, the configured language of your browser... This is not an i18next topic sorry.
🚀 Feature Proposal
Provide language to
customHeaders
parameter in options to be able to append it toAccept-language
header.Example