I'm attempting to gather some analytics based off of the user's accept-language
header. It would be very helpful to turn "en-US,en;q=0.8"
into English (United States)
.
The only way I've really seen is using I18n and putting the name in the yaml file. This doesn't seem like a great solution because I would have to "translate" each possibility. It would make sense if I were using it for taking the user's preferred language and translating the page, but that's a different use case.
Is there any gem/gist I could use to find the language's display name?