private function addTranslationGroupsToArray($array = []): array
    {
        foreach(array_keys($array) as $language){
            foreach($this->translation_groups as $group){
                $array[$language][$group->name] = [];
            }
        }
        return $array;
    }
private function addTranslationGroupsToArray($array = []): array
    {
        foreach(array_keys($array) as $language){
            foreach($this->translation_groups as $group){
                $array[$language][$group->name] = [];
            }
        }
        return $array;
    }
private function addTranslationGroupsToArray ( $ array = [ ] ) : array { foreach ( array_keys ( $ array ) as $ language ) { foreach ( $ this -> translation_groups as $ group ) { $ array [ $ language ] [ $ group -> name ] = [ ] ; } } return $ array ; }
Adds translation groups to the given array.

@return array
Adds translation groups to the given array .