class Locale extends Locale
Helper class for dealing with locale strings.
Methods
| static array |
getDisplayCountries(string $locale)
Returns the country names for a locale |
|
| static array |
getCountries()
Returns all available country codes |
|
| static array |
getDisplayLanguages(string $locale)
Returns the language names for a locale |
|
| static array |
getLanguages()
Returns all available language codes |
|
| static array |
getDisplayLocales(string $locale)
Returns the locale names for a locale |
|
| static array |
getLocales()
Returns all available locale codes |
|
| static string|null |
getIntlIcuVersion()
Returns the ICU version as defined by the intl extension |
|
| static string|null |
getIntlIcuDataVersion()
Returns the ICU Data version as defined by the intl extension |
|
| static string |
getIcuDataVersion()
Returns the ICU data version that ships with Symfony. |
|
| static string |
getIcuDataDirectory()
Returns the directory path of the ICU data that ships with Symfony |
Details
at line 54
static public array
getDisplayCountries(string $locale)
Returns the country names for a locale
at line 69
static public array
getCountries()
Returns all available country codes
at line 83
static public array
getDisplayLanguages(string $locale)
Returns the language names for a locale
at line 98
static public array
getLanguages()
Returns all available language codes
at line 112
static public array
getDisplayLocales(string $locale)
Returns the locale names for a locale
at line 127
static public array
getLocales()
Returns all available locale codes
at line 137
static public string|null
getIntlIcuVersion()
Returns the ICU version as defined by the intl extension
at line 147
static public string|null
getIntlIcuDataVersion()
Returns the ICU Data version as defined by the intl extension
at line 158
static public string
getIcuDataVersion()
Returns the ICU data version that ships with Symfony.
If the environment variable USE_INTL_ICU_DATA_VERSION is
defined, it will try use the ICU data version as defined by the intl extension, if available.
at line 168
static public string
getIcuDataDirectory()
Returns the directory path of the ICU data that ships with Symfony