cyril/accept_language.rb
Lightweight, zero-dependency Ruby library for parsing the Accept-Language HTTP header. Implements RFC 4647 Basic Filtering to match user language preferences against available locales. Supports quality values, wildcards, exclusions, prefix matching, and BCP 47 tags.
21 best points · 0 comments · 1 Hacker News post · 85 GitHub stars · View on GitHub
Hacker News discussions
- Accept_language 2.2 – RFC 7231/4647 compliant Accept-Language parsing for Ruby (21 points, 0 comments, by cyrilllllll, 2026-01-25)