Skip to content

Commit

Permalink
dev: Restore security files on make translations
Browse files Browse the repository at this point in the history
For some reasons, Symfony doesn't detect the security keys and remove
them from the security files. With this patch, we restore these files
immediately with Git.

The downside is that we'll not be able to use `make translations` to
update the security files. Hopefully, we don't change them often (if
ever).
  • Loading branch information
marien-probesys committed Nov 21, 2023
1 parent faafd30 commit 9b1afa7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ endif
translations: ## Update the translations from the code
$(CONSOLE) translation:extract --format=yaml --force --clean en_GB
$(CONSOLE) translation:extract --format=yaml --force --clean fr_FR
# Restore the security files as keys are removed from them whereas they should not.
git restore translations/security+intl-icu.*

.PHONY: migration
migration: ## Generate a database migration from entities changes
Expand Down

0 comments on commit 9b1afa7

Please sign in to comment.