How to Add Script Editor Web Part and Multilingual Pages in Modern SharePoint
Question details
The user needs to add custom scripts using a Script Editor web part on modern SharePoint sites and configure bilingual or multilingual pages and news content.

- Product
- Microsoft SharePoint
- Device & OS
- not provided
- Scenario
- Customizing a modern SharePoint communication site by embedding scripts and managing content in multiple languages.
- Observed behavior
- The classic Script Editor web part is missing on modern communication sites by default, and site owners need guidance on enabling multilingual features.
Ensure you have Site Owner or Tenant Administrator permissions to deploy custom web parts to the SharePoint App Catalog and to modify site language settings.
Deploy the PnP Modern Script Editor Web Part
Since the classic Script Editor is not supported on modern pages, you can use the open-source modern Script Editor developed by the SharePoint Patterns and Practices (PnP) community.
Microsoft restricts custom scripts on modern pages for security reasons. However, the PnP community provides a safe, trusted alternative that functions similarly to the classic web part.
Navigate to the official SharePoint PnP GitHub repository and download the Modern Script Editor Web Part package file (.sppkg).
Go to your SharePoint Admin Center, open the App Catalog, and upload the downloaded .sppkg file to the Apps for SharePoint list.
Confirm the deployment prompt to make the web part available across your tenant or specific site collections.
Navigate to your modern SharePoint page, click 'Edit', click the '+' icon to add a new web part, and search for 'Script Editor' to embed your custom HTML or JavaScript.

Enable Multilingual Publishing for SharePoint Pages
Use Microsoft's native built-in multilingual features to translate communication site pages and news posts into multiple languages.
Draft and Translate Your Documents Easily with WPS Office
While SharePoint handles your intranet pages, your team still needs a robust application suite for drafting documents. WPS Office is a highly compatible, free alternative to Microsoft Office. It seamlessly opens Office files and includes powerful built-in translation tools to help you prepare multilingual content locally before uploading it to your SharePoint libraries.
- 1. Install WPS Office: Download and install the free WPS Office suite on your desktop or mobile device.
- 2. Open Your Office Documents: Open your existing Microsoft Word, Excel, or PowerPoint files directly in WPS Office without any format distortion.
- 3. Use Built-in Translation: Navigate to the 'Review' tab in WPS Writer and use the built-in translation tools to easily draft multilingual documents before sharing them on your sites.

Frequently Asked Questions
Why is the classic Script Editor missing in modern SharePoint?
Microsoft disabled the classic Script Editor web part on modern pages by default to enhance site security and prevent unverified or malicious custom scripts from running. They recommend using the SharePoint Framework (SPFx) for customizations.
Do I need admin rights to add the PnP Script Editor web part?
Yes. You must have Tenant Administrator or Site Collection Administrator permissions to upload and deploy the custom .sppkg file to the SharePoint App Catalog.
Will Microsoft automatically translate my SharePoint site content?
No. Enabling the multilingual feature creates a separate copy of the page for the target language, but it does not auto-translate the text. The assigned translator must manually translate and publish the content.




