Skip to content

Commit

Permalink
Do not export messages in missing site locales
Browse files Browse the repository at this point in the history
  • Loading branch information
birdkiwi committed May 27, 2023
1 parent 6a26ffc commit 2b6f375
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/services/SourceMessageService.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ public function getSourceMessagesArrayByCategory($category)
foreach ($groups as $group) {
$languages = [];
foreach ($group as $item) {
if (!in_array($item['language'], $siteLocales)) {
continue;
}
$languages[$item['language']] = $item['translation'];
}
if (count($languages) < count($siteLocales)) {
Expand Down

0 comments on commit 2b6f375

Please sign in to comment.