diff --git a/src/Mapping/YamlWithLocaleProvider.php b/src/Mapping/YamlWithLocaleProvider.php index dfdee2a8..feba5cb8 100644 --- a/src/Mapping/YamlWithLocaleProvider.php +++ b/src/Mapping/YamlWithLocaleProvider.php @@ -91,12 +91,12 @@ private function appendMapping(string $configurationDirectory, array $mapping, s private function appendLocaleAnalyzers(string $configurationDirectory, array $mapping, ?string $locale): array { + $mapping = $this->appendAnalyzers($configurationDirectory . \DIRECTORY_SEPARATOR . 'analyzers.yaml', $mapping); + if (null === $locale) { return $mapping; } - $mapping = $this->appendAnalyzers($configurationDirectory . \DIRECTORY_SEPARATOR . 'analyzers.yaml', $mapping); - foreach ($this->getLocaleCode($locale) as $localeCode) { $mapping = $this->appendAnalyzers($configurationDirectory . \DIRECTORY_SEPARATOR . 'analyzers_' . $localeCode . '.yaml', $mapping); }