soapproject
Results
2
comments of
soapproject
Same requirement from i18next ```typescript import { withAuth } from 'next-auth/middleware'; import acceptLanguage from 'accept-language'; const cookieName = 'i18next'; const fallbackLng = 'en'; const languages = ['en', 'zh']; // Language...
update: I just notic v5 comming soon and it will be much easyer. But so far this works with v4. ```typescript import acceptLanguage from 'accept-language'; import { withAuth, type NextRequestWithAuth...