Skip to content

Instantly share code, notes, and snippets.

@eugenedauphin
Created February 8, 2016 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eugenedauphin/0f9ca3321df10990cd38 to your computer and use it in GitHub Desktop.
Save eugenedauphin/0f9ca3321df10990cd38 to your computer and use it in GitHub Desktop.
$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