Fix loading countries

This commit is contained in:
2023-07-30 22:01:55 +02:00
parent 770d64a2f8
commit 984c35f8bc
3 changed files with 26 additions and 36 deletions

View File

@@ -75,7 +75,7 @@ class LoadLanguages extends AbstractFixture implements ContainerAwareInterface,
$names = [];
foreach ($this->container->getParameter('chill_main.available_languages') as $lang) {
$names[$lang] = \Symfony\Component\Intl\Languages::getName('en_GB');
$names[$lang] = \Symfony\Component\Intl\Languages::getName($languageCode, $lang);
}
return $names;