Merge config into single file for translations

This commit is contained in:
2025-11-28 12:41:46 +01:00
parent 7f71fae295
commit 009846853b
2 changed files with 3 additions and 6 deletions

View File

@@ -1,9 +1,10 @@
# config/packages/translation.yaml
framework:
default_locale: en
default_locale: '%env(resolve:LOCALE)%' # LOCALE=fr in .env
translator:
default_path: '%kernel.project_dir%/translations'
fallbacks:
- en
- '%env(resolve:LOCALE)%' # fr
providers:
loco:
dsn: '%env(LOCO_DSN)%'

View File

@@ -1,4 +0,0 @@
framework:
default_locale: '%env(resolve:LOCALE)%'
translator:
fallbacks: [ '%env(resolve:LOCALE)%' ]