diff --git a/docker-compose.yml b/docker-compose.yml index 1af7674..7dbeab0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -33,6 +33,7 @@ services: - CHROME_EXTENSION_BANNER_JSON - CONFCODE_URL - CONFIG_EXTERNAL_CONNECT + - DEFAULT_LANGUAGE - DEPLOYMENTINFO_ENVIRONMENT - DEPLOYMENTINFO_ENVIRONMENT_TYPE - DEPLOYMENTINFO_REGION diff --git a/web/rootfs/defaults/settings-config.js b/web/rootfs/defaults/settings-config.js index f3f4ddd..b446595 100644 --- a/web/rootfs/defaults/settings-config.js +++ b/web/rootfs/defaults/settings-config.js @@ -246,6 +246,11 @@ config.enableWelcomePage = {{ $ENABLE_WELCOME_PAGE }}; // Close page. config.enableClosePage = {{ $ENABLE_CLOSE_PAGE }}; +// Default language. +{{ if .Env.DEFAULT_LANGUAGE -}} +config.defaultLanguage = '{{ .Env.DEFAULT_LANGUAGE }}'; +{{ end -}} + // Require users to always specify a display name. config.requireDisplayName = {{ $ENABLE_REQUIRE_DISPLAY_NAME }};