Skip to content

getLocaleFromHeader matches bad locale #5

@soknifedev

Description

@soknifedev

Using this header:

Accept-Language: es-419,es;q=0.9,en;q=0.8,es-US;q=0.7

getLocaleFromHeader will result in "es-" which is an invalid locale.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions