As far as I know, hl and gl should also be passed in the context of the request body, like this:
So we need to add hl and gl parameters to the models.py -> contextualize function to make the locale parameter work.
Notes
However, the format of the Accept Language header is "xx-XX,xx;q=0.5", but the format of the context parameter is 'xx' for hl and 'XX' for gl.
We need to think about how to apply both to the models.py -> Locale class.
Problem
A request was sent using the following locale parameters:
But the result is still in English.
Solution
As far as I know, hl and gl should also be passed in the context of the request body, like this:
So we need to add hl and gl parameters to the models.py -> contextualize function to make the locale parameter work.
Notes
However, the format of the Accept Language header is "xx-XX,xx;q=0.5", but the format of the context parameter is 'xx' for hl and 'XX' for gl. We need to think about how to apply both to the models.py -> Locale class.