diff --git a/framework/core/src/Api/Serializer/GroupSerializer.php b/framework/core/src/Api/Serializer/GroupSerializer.php index 00f8b16fa..393a00758 100644 --- a/framework/core/src/Api/Serializer/GroupSerializer.php +++ b/framework/core/src/Api/Serializer/GroupSerializer.php @@ -69,9 +69,9 @@ class GroupSerializer extends AbstractSerializer */ private function translateGroupName($name) { - $translation = $this->translator->trans('core.group.'.strtolower($name)); + $translation = $this->translator->trans($key = 'core.group.'.strtolower($name)); - if ($translation !== $name) { + if ($translation !== $key) { return $translation; }