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 f831d4c commit 346d2f9Copy full SHA for 346d2f9
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