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.
2 parents f831d4c + 346d2f9 commit 3eed1c3Copy full SHA for 3eed1c3
Admin/Extension/TranslatableExtension.php
@@ -66,7 +66,7 @@ public function alterNewInstance(AdminInterface $admin, $object)
66
}
67
68
if ($admin->hasRequest()) {
69
- $currentLocale = $admin->getRequest()->attributes->get('_locale');
+ $currentLocale = $admin->getRequest()->getLocale();
70
71
if (in_array($currentLocale, $this->locales)) {
72
$object->setLocale($currentLocale);
0 commit comments