in my app I need to have a listener when the locale changes (in order to switch custom monetary formats). Currently I have to do this directly with counterpart, but I think it would be useful to expose this functionality inside the react-translate-component as well.
Hi,
in my app I need to have a listener when the locale changes (in order to switch custom monetary formats). Currently I have to do this directly with counterpart, but I think it would be useful to expose this functionality inside the react-translate-component as well.
module.exports.onLocaleChange = translator.onLocaleChange.bind(translator);
What do you think?