QuiiBz / next-international

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

New importLocale prop for I18nProviderClient missing on documentation #327

Closed maloyuso closed 6 months ago

maloyuso commented 6 months ago

Describe the bug A new required prop was added to I18nProviderClient but there's no documentation on whats the expected value. Also useScopedI18n stops working.

To Reproduce Steps to reproduce the behavior:

  1. Mounting
  2. An error is raised: Property 'importLocale' is missing in type '{ children: Element; locale: "en"; fallback: Element; }' but required in type '{ locale: string; fallback?: ReactNode; importLocale: Promise<Record<string, unknown>>; children: ReactNode; }
  3. useScopedI18n stops working. The passed scope is not being recognized

Expected behavior There's no error on I18nProviderClient and useScopedI18n works as expected.

Screenshots NA

About (please complete the following information):

Additional context Issue when trying to update to next-international version 1.2.0

QuiiBz commented 6 months ago

https://github.com/QuiiBz/next-international/releases/tag/1.2.1 was released to fix the types.