{"action":"closed","issue":{"url":"https://api.github.com/repos/codemix/yii2-localeurls/issues/11","labels_url":"https://api.github.com/repos/codemix/yii2-localeurls/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/codemix/yii2-localeurls/issues/11/comments","events_url":"https://api.github.com/repos/codemix/yii2-localeurls/issues/11/events","html_url":"https://github.com/codemix/yii2-localeurls/issues/11","id":69333877,"number":11,"title":"Accept different country variants","user":{"login":"rolblo12","id":11555152,"avatar_url":"https://avatars.githubusercontent.com/u/11555152?v=3","gravatar_id":"","url":"https://api.github.com/users/rolblo12","html_url":"https://github.com/rolblo12","followers_url":"https://api.github.com/users/rolblo12/followers","following_url":"https://api.github.com/users/rolblo12/following{/other_user}","gists_url":"https://api.github.com/users/rolblo12/gists{/gist_id}","starred_url":"https://api.github.com/users/rolblo12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rolblo12/subscriptions","organizations_url":"https://api.github.com/users/rolblo12/orgs","repos_url":"https://api.github.com/users/rolblo12/repos","events_url":"https://api.github.com/users/rolblo12/events{/privacy}","received_events_url":"https://api.github.com/users/rolblo12/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/codemix/yii2-localeurls/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/codemix/yii2-localeurls/milestones/2","html_url":"https://github.com/codemix/yii2-localeurls/milestones/1.0.5","labels_url":"https://api.github.com/repos/codemix/yii2-localeurls/milestones/2/labels","id":1080419,"number":2,"title":"1.0.5","description":"* Fixes redirect issues\r\n* Introduces wildcard country matching: `de-*`","creator":{"login":"mikehaertl","id":675062,"avatar_url":"https://avatars.githubusercontent.com/u/675062?v=3","gravatar_id":"","url":"https://api.github.com/users/mikehaertl","html_url":"https://github.com/mikehaertl","followers_url":"https://api.github.com/users/mikehaertl/followers","following_url":"https://api.github.com/users/mikehaertl/following{/other_user}","gists_url":"https://api.github.com/users/mikehaertl/gists{/gist_id}","starred_url":"https://api.github.com/users/mikehaertl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikehaertl/subscriptions","organizations_url":"https://api.github.com/users/mikehaertl/orgs","repos_url":"https://api.github.com/users/mikehaertl/repos","events_url":"https://api.github.com/users/mikehaertl/events{/privacy}","received_events_url":"https://api.github.com/users/mikehaertl/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":1,"state":"open","created_at":"2015-04-23T11:14:26Z","updated_at":"2015-04-24T10:26:58Z","due_on":null,"closed_at":null},"comments":43,"created_at":"2015-04-18T18:19:27Z","updated_at":"2015-04-24T10:26:58Z","closed_at":"2015-04-24T10:26:58Z","body":"Requests from Firefox include the language code including any country codes completely in lower case. Localeurls just uses this code as is to set the Yii language.\r\n\r\nThis is ok for language only. However, if you have country specific language variants, Yii specifies them as upper case (ISO-3166). Also ICU requires the country codes as upper case. Furthermore, if you use the JUI Datepicker, its language specific javascript files have the country code in upper case in their name.\r\nSo I suppose converting any country code to upper case before it goes into the Yii language would help.\r\n\r\nAnother issue is that Localeurls does not fall back from an unsupported language variant to the language without variant. So if I support the 'de' translation, I get an page not found error if the request has 'de-at' as the language code. It could silently switch to 'de' instead."}}