Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions config/packages/translation.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# See https://symfony.com/doc/current/translation.html
framework:
default_locale: '%locale%'
default_locale: '%app.locale%'
translator:
# Translations are defined using the ICU Message Format
# See https://symfony.com/doc/current/translation/message_format.html
default_path: '%kernel.project_dir%/translations'
fallbacks:
- '%locale%'
- '%app.locale%'
providers:
# crowdin:
# dsn: '%env(CROWDIN_DSN)%'
Expand Down
4 changes: 2 additions & 2 deletions config/routes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ homepage:
controller: Symfony\Bundle\FrameworkBundle\Controller\TemplateController::templateAction
defaults:
template: default/homepage.html.twig
_locale: '%locale%'
_locale: '%app.locale%'

controllers:
resource:
Expand All @@ -16,4 +16,4 @@ controllers:
type: attribute
prefix: /{_locale}
defaults:
_locale: '%locale%'
_locale: '%app.locale%'
4 changes: 2 additions & 2 deletions config/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.html#use-parameters-for-application-configuration
parameters:
locale: 'en'
app.locale: 'en'
app.notifications.email_sender: [email protected]

services:
Expand All @@ -17,7 +17,7 @@ services:
# defined/created in this file; if some argument is used rarely, instead of defining
# it here you can use the #[Autowire] attribute to inject it manually in the service constructor
array $enabledLocales: '%kernel.enabled_locales%'
string $defaultLocale: '%locale%'
string $defaultLocale: '%app.locale%'

# makes classes in src/ available to be used as services
# this creates a service per class whose id is the fully-qualified class name
Expand Down
Loading