QuiiBz / next-international

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

TypeScript Error When Using Object Notation for fallbackLocale #173

Closed ghost closed 1 year ago

ghost commented 1 year ago

Describe the bug I've encountered a bug in next-international when using Object notation for fallback Locale. It results in a TypeScript error.

Screenshots image

About

Additional context This issue arises when defining locales using Object notation. When I use Dot notation, there's no problem.

QuiiBz commented 1 year ago

Good catch! Fixed in #174, I'll do a release very soon.

QuiiBz commented 1 year ago

Fix released in https://github.com/QuiiBz/next-international/releases/tag/1.0.1!