protected function getLocaleSlug(Locale $locale, $categoryName)
    {
        $slug          = Sluggable::makeSlug($categoryName);
        $currentLocale = $this->getRequestHelper()->getCurrentLocale();
        if ($locale->getCode() != $currentLocale) {
            $slug = Sluggable::makeSlug(sprintf('%s-%s', $categoryName, $locale->getCode()));
        }

        return $slug;
    }
protected function getLocaleSlug(Locale $locale, $categoryName)
    {
        $slug          = Sluggable::makeSlug($categoryName);
        $currentLocale = $this->getRequestHelper()->getCurrentLocale();
        if ($locale->getCode() != $currentLocale) {
            $slug = Sluggable::makeSlug(sprintf('%s-%s', $categoryName, $locale->getCode()));
        }

        return $slug;
    }
protected function getLocaleSlug ( Locale $ locale , $ categoryName ) { $ slug = Sluggable :: makeSlug ( $ categoryName ) ; $ currentLocale = $ this -> getRequestHelper ( ) -> getCurrentLocale ( ) ; if ( $ locale -> getCode ( ) != $ currentLocale ) { $ slug = Sluggable :: makeSlug ( sprintf ( '%s-%s' , $ categoryName , $ locale -> getCode ( ) ) ) ; } return $ slug ; }
Returns category slug

@param Locale $locale
@param string $categoryName

@return mixed|string
Returns category slug