Skip to content

Does not work with traditonal vs simplified Chinese #55

@ragesoss

Description

@ragesoss

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions