Remove content translation functionality from the JSS Next.js app
Version: 19.x
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 thedictionary
property of the typeSitecorePageProps
. -
In the file
/src/pages/_app.tsx
, remove theI18nProvider
import and its usage from theApp
function. -
Remove the file
src/lib/dictionary-service-factory.ts
and its usage.