Locale deprecated
class Locale extends Locale
deprecated
Helper class for dealing with locale strings.
Methods
Returns the country names for a locale.
Returns all available country codes.
Returns the language names for a locale.
Returns all available language codes.
Returns the locale names for a locale.
Returns all available locale codes.
Returns the ICU version as defined by the intl extension.
Returns the ICU Data version as defined by the intl extension.
Returns the ICU data version that ships with Symfony. If the environment variable USEINTLICUDATAVERSION is defined, it will try use the ICU data version as defined by the intl extension, if available.
Returns the directory path of the ICU data that ships with Symfony.
Details
at line line 58
static array
getDisplayCountries(string $locale)
Returns the country names for a locale.
at line line 74
static array
getCountries()
Returns all available country codes.
at line line 88
static array
getDisplayLanguages(string $locale)
Returns the language names for a locale.
at line line 104
static array
getLanguages()
Returns all available language codes.
at line line 118
static array
getDisplayLocales(string $locale)
Returns the locale names for a locale.
at line line 134
static array
getLocales()
Returns all available locale codes.
at line line 144
static string|null
getIntlIcuVersion()
Returns the ICU version as defined by the intl extension.
at line line 154
static string|null
getIntlIcuDataVersion()
Returns the ICU Data version as defined by the intl extension.
at line line 165
static string
getIcuDataVersion()
Returns the ICU data version that ships with Symfony. If the environment variable USEINTLICUDATAVERSION is defined, it will try use the ICU data version as defined by the intl extension, if available.
at line line 175
static string
getIcuDataDirectory()
Returns the directory path of the ICU data that ships with Symfony.