RegionBundle
class RegionBundle extends RegionDataProvider implements RegionBundleInterface
Default implementation of {@link RegionBundleInterface}.
Methods
__construct(string $path, BundleEntryReaderInterface $reader, LocaleDataProvider $localeProvider)
Creates a data provider that reads locale-related data from .res files.
string|null
getCountryName(string $country, string $displayLocale = null)
Returns the name of a country.
string[]
getCountryNames(string $displayLocale = null)
Returns the names of all known countries.
string[]
getLocales()
Returns the list of locales that this bundle supports.
Details
__construct(string $path, BundleEntryReaderInterface $reader, LocaleDataProvider $localeProvider)
Creates a data provider that reads locale-related data from .res files.