commerceguys / intl

A PHP internationalization library, powered by CLDR data.
MIT License
360 stars 45 forks source link

Language selection with uppercase not working #70

Closed KevinXL closed 5 years ago

KevinXL commented 6 years ago

Some off the language codes in the source file contains uppercase characters. Because the strtolower it can't find the definition in: https://github.com/commerceguys/intl/blob/22156e447530d6ebd387bfee51ef1ae2c70a5ff0/src/Language/LanguageRepository.php#L98

$languageRepository = new LanguageRepository();
$languageRepository->get('nl-BE');
bojanz commented 5 years ago

Thanks for the report! Tagged a new release.