Remove content translation functionality from the JSS Next.js app
Version:
If you do not have multilingual content and do not use Sitecore Dictionaries, you can remove translation functionality from your Next.js application.
To entirely remove translation functionality from the application:
- In the
src/lib/page-props-factory.ts, remove dictionary calls. - In the file
/src/lib/page-props.ts, remove thedictionaryproperty of the typeSitecorePageProps. - In the file
/src/pages/_app.tsx, remove theI18nProviderimport and its usage from theAppfunction. - Remove the file
src/lib/dictionary-service-factory.tsand its usage.
If you have suggestions for improving this article, let us know!