I'm using react-i18next
to translate my react app.
For every different "main" pages (navigated from the menu), I get t()
function with useTranslation
; and for children components of these pages, I pass the t
with other props to the children.
I'm wondering if I was doing it the right way?
Is it better to get t
with useTranslation
inside each child, instead inside their parents?
IMHO using useTranslation
in every component is the better way, because: