typesafe-i18n
typesafe-i18n copied to clipboard
React Docs Don't Match the React Example
Version
5.26.2
Describe the bug
The react docs incorrectly suggest using the sync loadlocale and attempt to call .then in the useEffect hook.
The example seems to be correct.
Reproduction
Follow the links to compare the example and the docs.
Getting Started with React: https://github.com/ivanhofer/typesafe-i18n/tree/main/packages/adapter-react
React Example: https://github.com/ivanhofer/typesafe-i18n/blob/main/packages/adapter-react/examples/react/src/App.tsx
Logs
No response
Config
No response
Additional information
No response