Skip to content

Commit

Permalink
ContentVersion compileAll uses configured locales (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
javihgil committed Jun 20, 2024
1 parent f68f01d commit 370b5fb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Render/ContentVersionCompiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ public function compileAll(ContentVersionInterface $contentVersion): array
$compiled = [];
$compiledModules = [];
foreach ($contentVersion->getContent()->getSites() as $site) {
// TODO REFACTOR ON TRANSLATIONS MERGE
foreach ($this->enabledLocales as $locale) {
foreach ($contentVersion->getContent()->getLocales() as $locale) {
$this->cmsLogger && $this->cmsLogger->debug(sprintf('Compiling "%s" content version for "%s" in "%s"', $contentVersion->getContent()->getName(), "$site", $locale));

$request = ContentVersionRenderer::generateRequest($locale, $site);
Expand Down

0 comments on commit 370b5fb

Please sign in to comment.