Skip to content

expandLanguageCandidates

expandLanguageCandidates(languages): string[]

Ordered candidates from a browser-style language list: each region-tagged entry is followed by its base language (['fr-CA', 'en-US']['fr-CA', 'fr', 'en-US', 'en']), the AcceptLanguageParser expansion reapplied. Duplicates keep their first position.

readonly string[]

string[]