Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
PrevProps the same as current props #508
Hi and thanks for awesome library.
I use react-i18next in my project and I've got an issue when I want to access
I took a look in the core and found that inside
Is there any reason why it was implemented this way? I'd really like to have
Thanks for quick response.
I have a case where I need to do some async calls when language changed. So I'd have condition in the
Although i18next has
hm...then i would suggest we pass lng from translate to component as a prop...the i18n instance is based on i18next and can't be really changed therefor
so adding it to the I18n render props which is used in translate hoc and from there add it to components props?!?
yes and also here: https://github.com/i18next/react-i18next/blob/master/src/I18n.js#L124
basically passing it from that I18n to the line you showed above...
feel free to make a PR