Issue summary
AppProvider creates i18n context, but it doesn't allow passing currency or the default manager. Best would be to export DiscountsI18nProvider and let people use that, because if they already use the AppProvider from i18n package, discount provider interferes and resets the manager.
Expected behavior
Actual behavior
Steps to reproduce the problem
- First step
- Second step
Reduced test case
The best way to get your bug fixed is to provide a reduced test case. This CodeSandbox template is a great starting point.
Specifications
- Are you using the React components? (Y/N):
- discount-app-components version number:
- Browser:
- Device:
- Operating System:
Or run npx envinfo --system --binaries --browsers --npmPackages react,react-dom,@shopify/discount-app-components to provide specifications on your environment including version numbers, browser, device, and operating system.
Paste the results here: