简体   繁体   中英

Need to Add Translators for Language in SharePoint Online using PnP PowerShell

Using this link Add alternative language to SharePoint Online Sites PowerShell I have enable Site languages and added alternative Language as well. tried to add translators for the alternative Language but I couldn't find anyway to do that, Is there a way to do it using PnP PowerShell or need to add it manually?

SharePoint Online: Add Alternate Language using PowerShell

#Set variables
$SiteURL = "https://tenant.sharepoint.com/sites/sitename"

#Add Welsh
$LanguageID = 1106 
 
#Connect to PnP Online
Connect-PnPOnline -Url $SiteURL -UseWebLogin 
 
#Get the Web
$Web = Get-PnPWeb
 
#Add Alternate Language
$Web.IsMultilingual = $True
$Web.AddSupportedUILanguage($LanguageID)
$Web.Update()
Invoke-PnPQuery

#Get the Web
$Web = Get-PnPWeb -Includes RegionalSettings.InstalledLanguages
 
#Get Available Languages
$Web.RegionalSettings.InstalledLanguages

在此处输入图像描述

Adding translators is not part of the standard multilingual site, it is part of the Multilingual Page Publishing feature that can be added to Communication sites.

You have to enable the feature first. Note that activating the feature wipes out the languages you added, you have to add the supported UI languages afterwards. The feature ID is 24611c05-ee19-45da-955f-6602264abaf8

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM