QuiiBz / next-international

Type-safe internationalization (i18n) for Next.js
https://next-international.vercel.app
MIT License
1.19k stars 52 forks source link

`I18nProviderClient` throwing `importLocale` prop as required #330

Closed ubinatus closed 6 months ago

ubinatus commented 6 months ago

Describe the bug Usage of I18nProviderClient is throwing a type error, requesting a prop that is not needed.

To Reproduce Steps to reproduce the behavior:

  1. Go to the examples/next-app
  2. Open the /examples/next-app/app/[locale]/provider.tsx
  3. Typescript server showing error on I18nProviderClient requesting to pass importLocale prop.

Expected behavior Provider should not request for importLocale, only locale and optional fallback belongs to the interface as stated on the app-setup docs

Screenshots

image

About (please complete the following information):

ubinatus commented 6 months ago

Working on to close this issue

QuiiBz commented 6 months ago

Released in https://github.com/QuiiBz/next-international/releases/tag/1.2.2