Skip to content

Add sample for setting SharePoint site available languages#951

Merged
pkbullock merged 1 commit into
pnp:mainfrom
kasperbolarsen:add-spo-set-site-available-languages-sample
May 24, 2026
Merged

Add sample for setting SharePoint site available languages#951
pkbullock merged 1 commit into
pnp:mainfrom
kasperbolarsen:add-spo-set-site-available-languages-sample

Conversation

@kasperbolarsen
Copy link
Copy Markdown
Collaborator

Summary

Adds a new PnP PowerShell sample for updating the available languages of a SharePoint site.

The sample:

  • accepts languages as LCIDs, culture names, display names, or delimited text
  • preserves the site's default language automatically
  • removes alternate languages not in the keep-list
  • disables multilingual support when no alternate languages remain

Files added

  • scripts/spo-set-site-available-languages/README.md
  • scripts/spo-set-site-available-languages/assets/sample.json
  • scripts/spo-set-site-available-languages/assets/example.png
  • scripts/spo-set-site-available-languages/assets/preview.png

@pkbullock
Copy link
Copy Markdown
Member

Hey @kasperbolarsen - awesome sample, thank you for sharing, this will be live shortly 🥳

@pkbullock pkbullock merged commit 3eb61b1 into pnp:main May 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants