Core / locale: parseAcceptLanguage
Functions, types, and exports for Core / locale: parseAcceptLanguage.
Page outline
Accept-Language tags sorted by quality, with base languages expanded.
import { parseAcceptLanguage } from "@palamedes/core/locale"
parseAcceptLanguage(header: string | null | undefined): string[]
Parameters
| Name | Type | Required |
|---|---|---|
header | string | null | undefined | Yes |
Returns
string[]
Last updated: November 1, 2026