You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: