Closed LorisSigrist closed 2 months ago
The NextJS Adapter setup is quite involved ATM.
next.config.js
src/lib/i18n.ts
middleware
LanguageProvider
Steps 1-4 could easily be automated / provided in a template.
Step 5 Is only necessary to call setLanguageTag on the server. If we can figure out how to solve PARJS-31 this may become obsolete
setLanguageTag
Step 6 Is likely here to stay
Context
The NextJS Adapter setup is quite involved ATM.
next.config.js
src/lib/i18n.ts
file & initialize paraglide\~middleware
LanguageProvider
Steps 1-4 could easily be automated / provided in a template.
Step 5 Is only necessary to call
setLanguageTag
on the server. If we can figure out how to solve PARJS-31 this may become obsoleteStep 6 Is likely here to stay
Proposal