Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$ctx = Get-SPOContext
$web = Get-SPOWeb
function AddSupportedUILanguageToWeb($web)
{
$web.Url
$web.IsMultilingual = $true
$web.AddSupportedUILanguage(1043)
$web.Update()
$ctx.ExecuteQuery()
}
AddSupportedUILanguageToWeb $web
$subWebs = Get-SPOSubWebs -Recurse
foreach($subWeb in $subWebs)
{
AddSupportedUILanguageToWeb $subWeb
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment