ibitcy / eo-locale

🌏Internationalize React apps 👔Elegant lightweight library based on Internationalization API
https://eo-locale.netlify.com/
MIT License
348 stars 12 forks source link

Better handling of locales in Translator #127

Closed Coachonko closed 5 months ago

Coachonko commented 5 months ago

Currently, the translator receives an array of locales. Its constructor selects the locale object that matches the language parameter, and the remaining locale objects are essentially thrown away, nothing utilizes them in the translator instance.

I think some changes should be made: