8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2729071 commit 02c9ac6Copy full SHA for 02c9ac6
src/Symfony/Component/Translation/Translator.php
@@ -460,7 +460,7 @@ private function loadFallbackCatalogues(string $locale): void
460
protected function computeFallbackLocales($locale)
461
{
462
if (null === $this->parentLocales) {
463
- $parentLocales = json_decode(file_get_contents(__DIR__.'/Resources/data/parents.json'), true);
+ $this->parentLocales = json_decode(file_get_contents(__DIR__.'/Resources/data/parents.json'), true);
464
}
465
466
$locales = [];
@@ -473,7 +473,7 @@ protected function computeFallbackLocales($locale)
473
474
475
while ($locale) {
476
- $parent = $parentLocales[$locale] ?? null;
+ $parent = $this->parentLocales[$locale] ?? null;
477
478
if ($parent) {
479
$locale = 'root' !== $parent ? $parent : null;
0 commit comments