From 0ec2b722252f761a0096e2a5e99d011df0ad1142 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Tue, 12 Mar 2019 12:26:40 +0100 Subject: [PATCH] Use en/ as default language. When no route prefix is selected, then use the locale setting. --- config/routes/annotations.yaml | 1 + config/services.yaml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config/routes/annotations.yaml b/config/routes/annotations.yaml index d7037b9e..d2f9e09d 100644 --- a/config/routes/annotations.yaml +++ b/config/routes/annotations.yaml @@ -5,3 +5,4 @@ controllers: prefix: en: '/en' de: '/de' + '%locale%': '/' diff --git a/config/services.yaml b/config/services.yaml index 9fcb4caf..10bca7de 100644 --- a/config/services.yaml +++ b/config/services.yaml @@ -4,7 +4,7 @@ # Put parameters here that don't need to change on each machine where the app is deployed # https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration parameters: - locale: 'de' + locale: 'en' services: # default configuration for services in *this* file