public function getLocalizedLiteralsForLocale(Locale $locale)
    {
        if (isset($this->localizedLiterals[(string)$locale])) {
            return $this->localizedLiterals[(string)$locale];
        }

        $model = $this->cldrRepository->getModelForLocale($locale);

        $localizedLiterals['months'] = $this->parseLocalizedLiterals($model, 'month');
        $localizedLiterals['days'] = $this->parseLocalizedLiterals($model, 'day');
        $localizedLiterals['quarters'] = $this->parseLocalizedLiterals($model, 'quarter');
        $localizedLiterals['dayPeriods'] = $this->parseLocalizedLiterals($model, 'dayPeriod');
        $localizedLiterals['eras'] = $this->parseLocalizedEras($model);

        return $this->localizedLiterals[(string)$locale] = $localizedLiterals;
    }
public function getLocalizedLiteralsForLocale(Locale $locale)
    {
        if (isset($this->localizedLiterals[(string)$locale])) {
            return $this->localizedLiterals[(string)$locale];
        }

        $model = $this->cldrRepository->getModelForLocale($locale);

        $localizedLiterals['months'] = $this->parseLocalizedLiterals($model, 'month');
        $localizedLiterals['days'] = $this->parseLocalizedLiterals($model, 'day');
        $localizedLiterals['quarters'] = $this->parseLocalizedLiterals($model, 'quarter');
        $localizedLiterals['dayPeriods'] = $this->parseLocalizedLiterals($model, 'dayPeriod');
        $localizedLiterals['eras'] = $this->parseLocalizedEras($model);

        return $this->localizedLiterals[(string)$locale] = $localizedLiterals;
    }
public function getLocalizedLiteralsForLocale ( Locale $ locale ) { if ( isset ( $ this -> localizedLiterals [ ( string ) $ locale ] ) ) { return $ this -> localizedLiterals [ ( string ) $ locale ] ; } $ model = $ this -> cldrRepository -> getModelForLocale ( $ locale ) ; $ localizedLiterals [ 'months' ] = $ this -> parseLocalizedLiterals ( $ model , 'month' ) ; $ localizedLiterals [ 'days' ] = $ this -> parseLocalizedLiterals ( $ model , 'day' ) ; $ localizedLiterals [ 'quarters' ] = $ this -> parseLocalizedLiterals ( $ model , 'quarter' ) ; $ localizedLiterals [ 'dayPeriods' ] = $ this -> parseLocalizedLiterals ( $ model , 'dayPeriod' ) ; $ localizedLiterals [ 'eras' ] = $ this -> parseLocalizedEras ( $ model ) ; return $ this -> localizedLiterals [ ( string ) $ locale ] = $ localizedLiterals ; }
Returns literals array for locale provided.

If array was not generated earlier, it will be generated and cached.

@param Locale $locale
@return array An array with localized literals
Returns literals array for locale provided .