private function adjustVendor($locales)
    {
        if (isset($locales['vendor'])) {
            foreach ($locales['vendor'] as $vendor => $data) {
                foreach ($data as $key => $group) {
                    foreach ($group as $locale => $lang) {
                        $locales[$key]['vendor'][$vendor][$locale] = $lang;
                    }
                }
            }

            unset($locales['vendor']);
        }

        return $locales;
    }
private function adjustVendor($locales)
    {
        if (isset($locales['vendor'])) {
            foreach ($locales['vendor'] as $vendor => $data) {
                foreach ($data as $key => $group) {
                    foreach ($group as $locale => $lang) {
                        $locales[$key]['vendor'][$vendor][$locale] = $lang;
                    }
                }
            }

            unset($locales['vendor']);
        }

        return $locales;
    }
private function adjustVendor ( $ locales ) { if ( isset ( $ locales [ 'vendor' ] ) ) { foreach ( $ locales [ 'vendor' ] as $ vendor => $ data ) { foreach ( $ data as $ key => $ group ) { foreach ( $ group as $ locale => $ lang ) { $ locales [ $ key ] [ 'vendor' ] [ $ vendor ] [ $ locale ] = $ lang ; } } } unset ( $ locales [ 'vendor' ] ) ; } return $ locales ; }
Adjus vendor index placement.

@param array $locales

@return array
Adjus vendor index placement .