Created
February 8, 2016 14:07
-
-
Save eugenedauphin/0f9ca3321df10990cd38 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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