final protected static function readEntry(array $indices, string $locale = null, bool $fallback = true)
    {
        if (null === self::$entryReader) {
            self::$entryReader = new BundleEntryReader(new BufferedBundleReader(
                new JsonBundleReader(),
                Intl::BUFFER_SIZE
            ));

            $localeAliases = self::$entryReader->readEntry(Intl::getDataDirectory().'/'.Intl::LOCALE_DIR, 'meta', ['Aliases']);
            self::$entryReader->setLocaleAliases($localeAliases instanceof \Traversable ? iterator_to_array($localeAliases) : $localeAliases);
        }

        return self::$entryReader->readEntry(static::getPath(), $locale ?? \Locale::getDefault(), $indices, $fallback);
    }
final protected static function readEntry(array $indices, string $locale = null, bool $fallback = true)
    {
        if (null === self::$entryReader) {
            self::$entryReader = new BundleEntryReader(new BufferedBundleReader(
                new JsonBundleReader(),
                Intl::BUFFER_SIZE
            ));

            $localeAliases = self::$entryReader->readEntry(Intl::getDataDirectory().'/'.Intl::LOCALE_DIR, 'meta', ['Aliases']);
            self::$entryReader->setLocaleAliases($localeAliases instanceof \Traversable ? iterator_to_array($localeAliases) : $localeAliases);
        }

        return self::$entryReader->readEntry(static::getPath(), $locale ?? \Locale::getDefault(), $indices, $fallback);
    }
final protected static function readEntry ( array $ indices , string $ locale = null , bool $ fallback = true ) { if ( null === self :: $ entryReader ) { self :: $ entryReader = new BundleEntryReader ( new BufferedBundleReader ( new JsonBundleReader ( ) , Intl :: BUFFER_SIZE ) ) ; $ localeAliases = self :: $ entryReader -> readEntry ( Intl :: getDataDirectory ( ) . '/' . Intl :: LOCALE_DIR , 'meta' , [ 'Aliases' ] ) ; self :: $ entryReader -> setLocaleAliases ( $ localeAliases instanceof \ Traversable ? iterator_to_array ( $ localeAliases ) : $ localeAliases ) ; } return self :: $ entryReader -> readEntry ( static :: getPath ( ) , $ locale ?? \ Locale :: getDefault ( ) , $ indices , $ fallback ) ; }
Reads an entry from a resource bundle.

@see BundleEntryReaderInterface::readEntry()

@param string[] $indices  The indices to read from the bundle
@param string   $locale   The locale to read
@param bool     $fallback Whether to merge the value with the value from
the fallback locale (e.g. "en" for "en_GB").
Only applicable if the result is multivalued
(i.e. array or \ArrayAccess) or cannot be found
in the requested locale.

@return mixed returns an array or {@link \ArrayAccess} instance for
complex data and a scalar value for simple data
Reads an entry from a resource bundle .