Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

Commit

Permalink
Source locale lookup correction.
Browse files Browse the repository at this point in the history
  • Loading branch information
mfendeksilverstripe committed Jul 17, 2020
1 parent 45ff218 commit af11a3b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Extension/FluentExtension.php
Expand Up @@ -904,6 +904,10 @@ public function getLocaleInstances(): array
$info = $this->owner->LocaleInformation($locale->getLocale());
$source = $info->getSourceLocale();

if (!$source) {
continue;
}

if ($source->Locale !== $locale->Locale) {
continue;
}
Expand Down

0 comments on commit af11a3b

Please sign in to comment.