Anahkiasen / polyglot

Laravel localization and translation helper
130 stars 22 forks source link

Locale's with more than two characters #42

Closed TomClarkson closed 9 years ago

TomClarkson commented 10 years ago

The UrlGenerator->locale() now returns null if the locale length in the url is not two characters. I have had to override the service provider and use my own UrlGenerator because I am using the locales zh-CN and zh-HK to differentiate mandarin and cantonese.

I am just wondering whether the UrlGenerator should in fact be returning null if the locale length is not two characters.

Many thanks