protected function doFindLocalizedAsset($locale, $asset)
    {
        if (isset($this->assets[$locale][$asset])) {
            return $this->assets[$locale][$asset];
        }

        if (0 < $pos = strpos($locale, '_')) {
            return $this->doFindLocalizedAsset(substr($locale, 0, $pos), $asset);
        }

        return [];
    }
protected function doFindLocalizedAsset($locale, $asset)
    {
        if (isset($this->assets[$locale][$asset])) {
            return $this->assets[$locale][$asset];
        }

        if (0 < $pos = strpos($locale, '_')) {
            return $this->doFindLocalizedAsset(substr($locale, 0, $pos), $asset);
        }

        return [];
    }
protected function doFindLocalizedAsset ( $ locale , $ asset ) { if ( isset ( $ this -> assets [ $ locale ] [ $ asset ] ) ) { return $ this -> assets [ $ locale ] [ $ asset ] ; } if ( 0 < $ pos = strpos ( $ locale , '_' ) ) { return $ this -> doFindLocalizedAsset ( substr ( $ locale , 0 , $ pos ) , $ asset ) ; } return [ ] ; }
Do find the localized asset.

@param string $locale
@param string $asset

@return string[]
Do find the localized asset .