QuiiBz / next-international

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

Load only the necessary translations for every page #380

Open FleetAdmiralJakob opened 3 months ago

FleetAdmiralJakob commented 3 months ago

Is your feature request related to a problem? Please describe. For bigger projects with exponentially more translations, it could be very helpful to only load the translations per page that are really needed.

Describe the solution you'd like A solution that I like looks like this: image next-translate where you define in the config which part of the translations you want to load for which site.

Describe alternatives you've considered Another solution which ig would only work inside of the pages router would be this: image next-i18next where you define the scope that is loaded for the page inside the getStaticProps function.