Closed gremo closed 1 year ago
For some reason, it seems working this way:
interface MyModalProps extends WithTranslation<'dialog'> {}
Is this the intended behaviour? Using const { t } = useTranslation('dialog')
works without problem.
Hey @gremo, yes it is. 😄
I'm using the slighly modified example explained here: https://react.i18next.com/latest/typescript. I have two namespaces,
common
anddialog
, for the default languageit
:The configuration:
For some reason, the translation works but TypeScript complains about
t('sort.title')
, of course sort.title exists indialog.json
: