SharePoint / sp-dev-docs

SharePoint & Viva Connections Developer Documentation
https://docs.microsoft.com/en-us/sharepoint/dev/
Creative Commons Attribution 4.0 International
1.25k stars 1.01k forks source link

Get-PnPSiteTemplate/Apply-PnPSiteTemplate not applying alternate language SiteFooter for site configured with an alternate language #7370

Open kstat opened 3 years ago

kstat commented 3 years ago

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

other (enter in the "Additional environment details" area below)

Developer environment

Windows

What browser(s) / client(s) have you tested

Additional environment details

PnP.PowerShell 1.7.0 PowerShell 7.1.4 Windows 10 Enterprise

Describe the bug / error

When extracting a PnP Site Template from a Modern Communication site configured with an alternate language, and attempting to apply the site footer (SiteFooter) to a new Modern Communication site with the same alternate language configuration, only the alternate language footer labels are being applied. The default site language (in my case EN) labels are not being applied (or are being overwritten).

Steps to reproduce

  1. Create a Modern Communication Site with English as the default language.

  2. Configure an alternate language on the site (e.g., Spanish)

  3. Author Footer navigation links in both languages (from Change the Look)

  4. Extract a PnP Site Template using cmdlet below (with option to persist multi-language resource files) Get-PnPSiteTemplate -Out template.xml -PersistMultiLanguageResources

  5. Create a new Modern communication site with English as the default language

  6. Configure the same alternate language on the new site (e.g., Spanish)

  7. Apply the PnP Site Template to the new site (either the entire template, or specifically the SiteFooter handler - both result in same behavior). Invoke-PnPSiteTemplate -Path ".\template.xml" -Handlers SiteFooter

  8. Only the ES (Spanish) nodes are applied to the footer and displayed for all users visiting the site regardless of their language preference.

Expected behavior

The footer nodes from the source site with multi-lingual values for all nodes should be applied as-is to the target site.

ghost commented 3 years ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.