logo
search
SharePoint Document Issues

How to Add Script Editor Web Part and Multilingual Pages in Modern SharePoint

Aamir Naveed AkramAamir Naveed Akram Oct 9, 2026 870 views

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.

How to Use the Script Editor Web Part and Enable Multilingual Pages in SharePoint
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.
Before you start

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.

Solution 1Recommended

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.

1
Download the Web Part Package

Navigate to the official SharePoint PnP GitHub repository and download the Modern Script Editor Web Part package file (.sppkg).

2
Upload to the App Catalog

Go to your SharePoint Admin Center, open the App Catalog, and upload the downloaded .sppkg file to the Apps for SharePoint list.

3
Deploy the Solution

Confirm the deployment prompt to make the web part available across your tenant or specific site collections.

4
Add to Your Page

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.

Deploy the PnP Modern Script Editor Web Part
Administrator Approval Required: Your organization's SharePoint administrator may need to approve the addition of third-party apps to the App Catalog before you can deploy it.
Free Microsoft Office alternative

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. 1. Install WPS Office: Download and install the free WPS Office suite on your desktop or mobile device.
  2. 2. Open Your Office Documents: Open your existing Microsoft Word, Excel, or PowerPoint files directly in WPS Office without any format distortion.
  3. 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.
Fully compatible with Microsoft Word, Excel, and PowerPoint formats (.docx, .xlsx, .pptx)Built-in multi-language translation tools within documentsFree, lightweight, and fast-loading alternative to heavy subscriptionsFamiliar user interface requires zero learning curve for easy migration
QA img-9

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.