Skip to content

Accept-Language is not used if country code is not provided #18

Description

@chusopr

Since setlocale($category, $locale) only works if $locale has country code (xx_XX), an Accept-Language without contry code won't load expected language.

For example, an Accept-Language header like this:

Accept-Language es,de-DE

Will load German when Spanish is expected.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions