Ecma\Intl

class Ecma\Intl
constant ICU_VERSION

The current ICU library version.

constant UNICODE_VERSION

The current Unicode version number.

static getCanonicalLocales($locales) string[]

Returns an array of canonical locale names for the input locale(s).

Parameters:
  • $locales (iterable<Stringable|string> | Stringable | string | null) – One or more locales to canonicalize.

static supportedValuesOf($category) string[]

Returns an array containing the calendar, collation, currency, numbering system, or unit values supported by this implementation.

Parameters: