Skip to content

Commit

Permalink
Hotfix: add fr_FR locale in Docker dev image + revert config.yml to u…
Browse files Browse the repository at this point in the history
…se Symfony translator
  • Loading branch information
petitalb committed Nov 17, 2023
1 parent 055b320 commit aedb4bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ RUN dpkg-reconfigure --frontend noninteractive tzdata
RUN apt-get update && apt-get install -y \
unzip \
locales \
locales-all \
libpng-dev \
libfreetype6-dev \
libjpeg-dev \
Expand Down
4 changes: 3 additions & 1 deletion app/config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ imports:
# 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
parameters:
locale: fr_FR.utf8
locale: fr_FR
registration_period: '15 days ago'
remainder_warning_delay: '15'
images_tmp_dir: '%kernel.project_dir%/web/tmp'
github_repo_url: 'elefan-grenoble/gestion-compte'
github_current_release: 'v1.45.6'

framework:
translator: { fallbacks: ['%locale%'] }
secret: '%secret%'
router:
resource: '%kernel.project_dir%/app/config/routing.yml'
Expand All @@ -23,6 +24,7 @@ framework:
validation: { enable_annotations: true }
templating:
engines: ['twig']
default_locale: '%locale%'
trusted_hosts: ~
session:
# https://symfony.com/doc/current/reference/configuration/framework.html#handler-id
Expand Down

0 comments on commit aedb4bd

Please sign in to comment.