Closed NourAlzway closed 7 months ago
not possible right now without lng... and depending on if its client or server side, also a react context can't be used...
Here an alternative: https://github.com/i18next/next-app-dir-i18next-no-locale-path-example
how to use the
useTranslation
without passing the lang param every time you want to use it, for example, if you have nested components like thisand you want to use
useTranslation
in theSubmitButton.tsx
, but you don't have the lang param if you don't drill down the props.