ttag-org / ttag

:orange_book: simple approach for javascript localization
https://ttag.js.org/
MIT License
338 stars 41 forks source link

expose loaded locales via api #232

Open vito-detullio-finconsgroup opened 2 years ago

vito-detullio-finconsgroup commented 2 years ago

looking at the doc there is no way to have access to the data loaded in the library via addLocale() looking at the code, the locale is (transformed, but with the same informations) stored in a Config instance inacessible for the end-user.

I would like to have a getLocale(localeName) function that return the loaded locale object.