🐛(i18n) same frontend and backend language using shared cookies

frontend: switch to cookie-based language selection
backend: use cookie for language
This commit is contained in:
rvveber
2024-10-22 18:17:53 +02:00
committed by Anthony LC
parent ff364f8b3d
commit 3c374e3cc7
9 changed files with 58 additions and 96 deletions

View File

@@ -223,6 +223,7 @@ class Base(Configuration):
# Languages
LANGUAGE_CODE = values.Value("en-us")
LANGUAGE_COOKIE_NAME = "docs_language" # cookie & language is set from frontend
DRF_NESTED_MULTIPART_PARSER = {
# output of parser is converted to querydict