protected function findLocalizedAsset($locale, $asset)
    {
        $localized = $this->doFindLocalizedAsset($locale, $asset);

        if (0 === \count($localized)) {
            $localized = $this->doFindLocalizedAsset($this->getFallbackLocale(), $asset);
        }

        return $localized;
    }
protected function findLocalizedAsset($locale, $asset)
    {
        $localized = $this->doFindLocalizedAsset($locale, $asset);

        if (0 === \count($localized)) {
            $localized = $this->doFindLocalizedAsset($this->getFallbackLocale(), $asset);
        }

        return $localized;
    }
protected function findLocalizedAsset ( $ locale , $ asset ) { $ localized = $ this -> doFindLocalizedAsset ( $ locale , $ asset ) ; if ( 0 === \ count ( $ localized ) ) { $ localized = $ this -> doFindLocalizedAsset ( $ this -> getFallbackLocale ( ) , $ asset ) ; } return $ localized ; }
Find the localized asset.

@param string $locale
@param string $asset

@return string[]
Find the localized asset .