pnp / pnp/pnpframework

Feature request: Allow to choose the SupportedUILanguages that we want to export during GetProvisioningTemplate

Open
#520 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
259
Forks
161
Avg merge
10h 33m
Merged PRs (30d)
1

Description

There is an open issue in the archived repository that was talking about the same thing...
https://github.com/pnp/PnP-Sites-Core/issues/1573

The problem is that we want to get the template of a site with some languages and resources, but we don't want to get the 51 supported by SP, only those that we are supporting, f.i. english, french, spanish, ...

Right now, we are able to set BaseTemplate to null, forcing to export all languages and resources, but it would be nice to be able to indicate somehow what languages we want to get.
Maybe something like this could work.
image

Also we should change this class
https://github.com/pnp/pnpframework/blob/dev/src/lib/PnP.Framework/Provisioning/ObjectHandlers/ObjectSupportedUILanguages.cs

Is this a valid approach?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing GetProvisioningTemplate behavior and src/lib/PnP.Framework/Provisioning/ObjectHandlers/ObjectSupportedUILanguages.cs, along with the related archived issue #1573. Determine how a caller could specify the supported UI languages without exporting all 51 languages; done means the template contains only the selected languages and resources.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.