Skip to main content

Remove content translation functionality from the JSS Next.js app


Remove and modify files to clean up unneeded translation features

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 the dictionary property of the type SitecorePageProps.

  • In the file /src/pages/_app.tsx, remove the I18nProvider import and its usage from the App function.

  • Remove the file src/lib/dictionary-service-factory.ts and its usage.