microapps / gatsby-plugin-react-i18next

Easily translate your Gatsby website into multiple languages
MIT License
121 stars 72 forks source link

Custom Provider and Context #132

Open diidiiman opened 2 years ago

diidiiman commented 2 years ago

Went through existing issues and documentation, but somehow could not find an answer.

Project relies on different providers, that handle the state of stock and other related resources between components. These providers also have toast messages defined that fire off when user add something to the cart or deletes a record.

The issue is that although I comprehend that for pages there must be a graphql query added for i18n to fetch translations, but how to properly handle language file access from Providers?