You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The definition files of react-i18next are minimal, providing little (if any) documentation of the functions and interfaces they define. For example, as of 15.0.1, index.d.ts does not document its purpose, let alone what it returns. That is pretty well documented in the online documentation, but there is not even a link to that from the "header files".
Motivation
Make it easier to understand how applications using react-i18next are implemented.
The text was updated successfully, but these errors were encountered:
Chealer
changed the title
Poor function documentation
Poor documentation in definition files (index.d.ts)
Aug 29, 2024
Our documentation is the online documentation... we usually don't document in the type definition files, since i18next is a JavaScript and not a TypeScript project... but if you want, you can for sure provide a PR to extend the type definition files.
Our documentation is the online documentation... we usually don't document in the type definition files, since i18next is a JavaScript and not a TypeScript project...
That's basically what this reports, yes.
I see your point, but TypeScript bindings can be generated from JavaScript. Judging from src/useTranslation.js, the problem is that react-i18next has no JSDoc.
but if you want, you can for sure provide a PR to extend the type definition files.
Thanks, but provide what?
Chealer
changed the title
Poor documentation in definition files (index.d.ts)
Poor builtin documentation (no JSDoc, including in TypeScript declaration files (index.d.ts))
Aug 30, 2024
Documentation issue
The definition files of react-i18next are minimal, providing little (if any) documentation of the functions and interfaces they define. For example, as of 15.0.1, index.d.ts does not document its purpose, let alone what it returns. That is pretty well documented in the online documentation, but there is not even a link to that from the "header files".
Motivation
Make it easier to understand how applications using react-i18next are implemented.
The text was updated successfully, but these errors were encountered: