-
Notifications
You must be signed in to change notification settings - Fork 121
Open
Description
The way that this gem throws out everything after a dash means that it is broken for Chinese locales. Typically, the languages codes are zh-hant, zh-hans, zh-CN, zh-TW, etc.
With the default methods, this gem always serves the first zh available zh variant. But almost any internationalized site that supports Chinese will have two or more variants, and getting simplified Chinese when you read traditional Chinese is not a usable situation.
Here's how I worked around it in my app: WikiEducationFoundation/WikiEduDashboard@cea14bc
I suggest that this gem would be a much more robust solution if it followed the RFC spec, rather than the current behavior described in the readme.
dteoh, KelseyDH and movermeyerKelseyDH
Metadata
Metadata
Assignees
Labels
No labels