Accept-Language Parser
JSON →accept-language is a Node.js library designed to parse the HTTP Accept-Language header, enabling applications to determine the user's preferred language based on the browser's request. It adheres strictly to the BCP47 standard for language tag compliance, ensuring robust internationalization (i18n) support. The current stable version is 3.0.20, which was last updated over two years ago, indicating a mature and stable codebase with a slow release cadence focused on maintenance rather than frequent feature additions. A key differentiator of this library is its streamlined approach: it focuses on providing a single best-matched language tag from a pre-defined list, simplifying the process for common i18n use cases where a direct match is preferred over a ranked list of possibilities. This contrasts with other parsers that might return an array of parsed language objects or offer extensive, complex matching options.
Traffic · last 30 days ↓47% vs prev 7d
top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇩🇪 Germany · VN · 🇨🇦 Canada