From 329360e39179fe9143166fe4368c8e5621d7e5d0 Mon Sep 17 00:00:00 2001 From: Hamza Madni Date: Fri, 29 Oct 2021 15:20:10 +0500 Subject: [PATCH] Add language selection field in the sites creation automation form --- .../edx_credentials_extensions/edly_credentials_app/helpers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/credentials/apps/edx_credentials_extensions/edly_credentials_app/helpers.py b/credentials/apps/edx_credentials_extensions/edly_credentials_app/helpers.py index 70865b296..c66be65af 100644 --- a/credentials/apps/edx_credentials_extensions/edly_credentials_app/helpers.py +++ b/credentials/apps/edx_credentials_extensions/edly_credentials_app/helpers.py @@ -40,6 +40,7 @@ def get_credentials_site_configuration(request_data): oauth2_clients = request_data.get('oauth2_clients', {}) credentials_sso_values = oauth2_clients.get('credentials-sso', {}) credentials_backend_values = oauth2_clients.get('credentials-backend', {}) + language_code = request_data.get('language_code', 'en') return { 'DJANGO_SETTINGS_OVERRIDE': { @@ -56,5 +57,6 @@ def get_credentials_site_configuration(request_data): 'BACKEND_SERVICE_EDX_OAUTH2_PROVIDER_URL': '{lms_site_with_protocol}/oauth2'.format( lms_site_with_protocol=lms_site_with_protocol ), + 'LANGUAGE_CODE': language_code, } }