commerceguys / intl

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

Create a Locale helper class #44

Closed bojanz closed 6 years ago

bojanz commented 6 years ago

LocaleResolverTrait has independent helpers that would be cleaner in their own class, which is also how PHP's intl structures it. This would allow us easier testing, and leave room for future logic (determining the correct parent locale, iterating through a known list of locales to fix #17, etc).