Skip to content

Commit aedb4bd

Browse files
committed
Hotfix: add fr_FR locale in Docker dev image + revert config.yml to use Symfony translator
1 parent 055b320 commit aedb4bd

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ RUN dpkg-reconfigure --frontend noninteractive tzdata
99
RUN apt-get update && apt-get install -y \
1010
unzip \
1111
locales \
12+
locales-all \
1213
libpng-dev \
1314
libfreetype6-dev \
1415
libjpeg-dev \

app/config/config.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@ imports:
66
# Put parameters here that don't need to change on each machine where the app is deployed
77
# https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
88
parameters:
9-
locale: fr_FR.utf8
9+
locale: fr_FR
1010
registration_period: '15 days ago'
1111
remainder_warning_delay: '15'
1212
images_tmp_dir: '%kernel.project_dir%/web/tmp'
1313
github_repo_url: 'elefan-grenoble/gestion-compte'
1414
github_current_release: 'v1.45.6'
1515

1616
framework:
17+
translator: { fallbacks: ['%locale%'] }
1718
secret: '%secret%'
1819
router:
1920
resource: '%kernel.project_dir%/app/config/routing.yml'
@@ -23,6 +24,7 @@ framework:
2324
validation: { enable_annotations: true }
2425
templating:
2526
engines: ['twig']
27+
default_locale: '%locale%'
2628
trusted_hosts: ~
2729
session:
2830
# https://symfony.com/doc/current/reference/configuration/framework.html#handler-id

0 commit comments

Comments
 (0)