Use en/ as default language. When no route prefix is selected, then use the locale setting.

This commit is contained in:
Jan Böhmer 2019-03-12 12:26:40 +01:00
parent 216ef282e2
commit 0ec2b72225
2 changed files with 2 additions and 1 deletions

View file

@ -5,3 +5,4 @@ controllers:
prefix: prefix:
en: '/en' en: '/en'
de: '/de' de: '/de'
'%locale%': '/'

View file

@ -4,7 +4,7 @@
# Put parameters here that don't need to change on each machine where the app is deployed # 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 # https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
parameters: parameters:
locale: 'de' locale: 'en'
services: services:
# default configuration for services in *this* file # default configuration for services in *this* file