Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

Kocal
Copy link
Member

@Kocal Kocal commented Jul 27, 2025

Q A
Bug fix? no
New feature? no
Docs? no
Issues Fix #...
License MIT

Close #1226

@carsonbot carsonbot added the Status: Needs Review Needs to be reviewed label Jul 27, 2025
@Kocal Kocal changed the title [Translator] Add functional test to ensure only enabled_locales are dumped [Translator] Add functional test to ensure only enabled_locales are dumped Jul 27, 2025
@Kocal Kocal force-pushed the 1226-translator-dumped-locales branch from 0d1950c to d0d0163 Compare July 27, 2025 08:21
@Kocal Kocal requested review from kbond and smnandre July 27, 2025 08:22
@Kocal
Copy link
Member Author

Kocal commented Jul 27, 2025

Failures related on lowest, it looks like the TranslationsCacheWarmer is not automatically called, when it is with highest deps 🤔

@Kocal Kocal changed the title [Translator] Add functional test to ensure only enabled_locales are dumped new title Jul 27, 2025
@Kocal Kocal changed the title new title [Translator] Add functional test to ensure only enabled_locales are dumped Jul 27, 2025
@Kocal Kocal changed the title [Translator] Add functional test to ensure only enabled_locales are dumped new title Jul 27, 2025
@Kocal Kocal changed the title new title [Translator] Add functional test to ensure only enabled_locales are dumped Jul 27, 2025
@Kocal Kocal force-pushed the 1226-translator-dumped-locales branch 7 times, most recently from bf9e6be to 9243d61 Compare July 27, 2025 21:47
@Kocal Kocal force-pushed the 1226-translator-dumped-locales branch from 9243d61 to 8cb4384 Compare July 27, 2025 21:47
@Kocal Kocal changed the title [Translator] Add functional test to ensure only enabled_locales are dumped [Translator] Add functional test to ensure only enabled locales are dumped Jul 27, 2025
$kernel = new FrameworkAppKernel('test', true);
$application = new Application($kernel);

// Trigger Symfony Translator and UX Translator cache warmers
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had some issues in lower tests, where our cache warmer was not called when running the functional test.
It worked fine in higher tests thanks to symfony/symfony#57553

But to make it easily consistent, we can manually trigger a cache clear here and the functional test will pass for every Symfony version

@Kocal Kocal merged commit 03aa495 into symfony:2.x Jul 27, 2025
32 of 37 checks passed
@Kocal Kocal deleted the 1226-translator-dumped-locales branch July 28, 2025 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Translator] Filter dumped locales
2 participants