(backend) the LanguagePicker now uses config as options

- config endpoint languages are used as available options for LanguagePicker
- updating the language from it, triggers an update on the user via API
This commit is contained in:
rvveber
2025-03-04 16:08:10 +01:00
committed by Samuel Paccoud
parent 23b0214a2a
commit 2bf47b7705
2 changed files with 11 additions and 5 deletions

View File

@@ -39,7 +39,11 @@ def test_api_config(is_authenticated):
"CRISP_WEBSITE_ID": "123",
"ENVIRONMENT": "test",
"FRONTEND_THEME": "test-theme",
"LANGUAGES": [["en-us", "English"], ["fr-fr", "French"], ["de-de", "German"]],
"LANGUAGES": [
["en-us", "English"],
["fr-fr", "Français"],
["de-de", "Deutsch"],
],
"LANGUAGE_CODE": "en-us",
"MEDIA_BASE_URL": "http://testserver/",
"POSTHOG_KEY": {"id": "132456", "host": "https://eu.i.posthog-test.com"},