QuiiBz / next-international

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

preserveSearchParams:true not working with urlMappingStrategy: 'rewrite' #245

Closed thainv92 closed 10 months ago

thainv92 commented 10 months ago

I use next-international 1.1.2 and next 13.5.2 I use function Preserving search params, but i not working when I use urlMappingStrategy: 'rewrite' const changeLocale = useChangeLocale({ preserveSearchParams: true })

This is my codesanbox: https://codesandbox.io/p/sandbox/next-international-app-router-forked-qh8w43?file=%2Fmiddleware.ts%3A7%2C33

QuiiBz commented 10 months ago

Fix (#246) released in https://github.com/QuiiBz/next-international/releases/tag/1.1.3!

thainv92 commented 10 months ago

Great ! It working well on version 1.1.3. Thanks, bro !