Issue with using `Accept-Language` to dictate language
@Senza reported to me that he was having some inconsistencies with the translation of text and the model: basically because the text is translated by the url ../es/
, whilst the model is translated by the Accept-Language
header, currently set from the browser language
This is how we designed it but clearly not ideal for the use case
I did some more research and found out that Django detects the language like so:
- URL path.
- Session data from a previous visit.
- A cookie.
- The Accept-Language request header.
- Django’s LANGUAGE-CODE setting.
DjangoLDP-i18n should be updated to follow the same procedure