File tree Expand file tree Collapse file tree 5 files changed +11
-4
lines changed Expand file tree Collapse file tree 5 files changed +11
-4
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11framework :
2- default_locale : en
2+ set_locale_from_accept_language : true
3+ set_content_language_from_locale : true
4+ enabled_locales : ' %app.supported_locales%'
5+ default_locale : ' %app.default_locale%'
36 translator :
47 default_path : ' %kernel.project_dir%/translations'
58 providers :
Original file line number Diff line number Diff line change @@ -3,3 +3,6 @@ controllers:
33 path : ../src/Controller/
44 namespace : App\Controller
55 type : attribute
6+ prefix :
7+ en : ' '
8+ fr : ' /fr'
Original file line number Diff line number Diff line change 11live_component :
22 resource : ' @LiveComponentBundle/config/routes.php'
3- prefix : ' /_components'
3+ # prefix: '/_components'
44 # adjust prefix to add localization to your components
5- # prefix: '/{_locale}/_components'
5+ prefix : ' /{_locale}/_components'
Original file line number Diff line number Diff line change 44# Put parameters here that don't need to change on each machine where the app is deployed
55# https://symfony.com/doc/current/best_practices.html#use-parameters-for-application-configuration
66parameters :
7+ app.default_locale : ' en'
8+ app.supported_locales : ['en', 'fr']
79
810services :
911 # default configuration for services in *this* file
You can’t perform that action at this time.
0 commit comments