Novis\Intl\Locale
Chooses a language for a request, and shows which language data a locale tag uses.
Members
2 members.
| Member | Signature |
|---|---|
negotiate | negotiate(string $acceptLanguage, array<string> $offered, string $default): string |
resolve | resolve(array<string> $tags, Service $service): array<string> |
Enums
Service { Collation, Numbers, Plurals, Dates, RelativeTime, Lists, Segmentation }The kind of data thatLocale::resolvechecks. For each locale tag, such asde-ATfor German in Austria, it returns the locale whose data is used.Collationis the data for sorting text.Numbersis the data for writing numbers.Pluralsis the data for plural forms.Datesis the data for writing dates.RelativeTimeis the data for times such as "in 3 days".Listsis the data for joining lists.Segmentationis the data for splitting text into words.
