microapps/gatsby-plugin-react-i18next

Custom Provider and Context

diidiiman opened this issue · 0 comments

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?