QuiiBz / next-international

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

defaultLocale not working #373

Closed sajjadramezani73 closed 3 months ago

sajjadramezani73 commented 4 months ago

hi I have used this package in the next 13.4 app router project

config for i18n with persian and english language and defaulLocale equal fa const I18nMiddleware = createI18nMiddleware({ locales: ['en', 'fa'], defaultLocale: 'fa', urlMappingStrategy: 'rewriteDefault', })

why after the implementation of the project localhost:4200/en it opens?

QuiiBz commented 4 months ago

What does your Accept-Language header looks like in the initial request? You might want to usethe resolveLocaleFromRequest option in the middleware to manually override the logic.

sajjadramezani73 commented 4 months ago

thank you My problem is solved