Skip to content

Commit a47af11

Browse files
committed
✨(backend) adds customization for translations
Part of customization PoC
1 parent d8f1159 commit a47af11

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

src/backend/core/api/viewsets.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1692,6 +1692,7 @@ def get(self, request):
16921692
"CRISP_WEBSITE_ID",
16931693
"ENVIRONMENT",
16941694
"FRONTEND_CSS_URL",
1695+
"FRONTEND_CUSTOM_TRANSLATIONS_URL",
16951696
"FRONTEND_FOOTER_FEATURE_ENABLED",
16961697
"FRONTEND_THEME",
16971698
"MEDIA_BASE_URL",

src/backend/core/tests/test_api_config.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
COLLABORATION_WS_URL="http://testcollab/",
2020
CRISP_WEBSITE_ID="123",
2121
FRONTEND_CSS_URL="http://testcss/",
22+
FRONTEND_CUSTOM_TRANSLATIONS_URL="http://test-custom-translations/",
2223
FRONTEND_FOOTER_FEATURE_ENABLED=True,
2324
FRONTEND_THEME="test-theme",
2425
MEDIA_BASE_URL="http://testserver/",
@@ -41,6 +42,7 @@ def test_api_config(is_authenticated):
4142
"CRISP_WEBSITE_ID": "123",
4243
"ENVIRONMENT": "test",
4344
"FRONTEND_CSS_URL": "http://testcss/",
45+
"FRONTEND_CUSTOM_TRANSLATIONS_URL": "http://test-custom-translations/",
4446
"FRONTEND_FOOTER_FEATURE_ENABLED": True,
4547
"FRONTEND_THEME": "test-theme",
4648
"LANGUAGES": [

src/backend/impress/settings.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,9 @@ class Base(Configuration):
426426
FRONTEND_CSS_URL = values.Value(
427427
None, environ_name="FRONTEND_CSS_URL", environ_prefix=None
428428
)
429+
FRONTEND_CUSTOM_TRANSLATIONS_URL = values.Value(
430+
None, environ_name="FRONTEND_CUSTOM_TRANSLATIONS_URL", environ_prefix=None
431+
)
429432

430433
# Posthog
431434
POSTHOG_KEY = values.DictValue(

0 commit comments

Comments
 (0)