pnpframework icon indicating copy to clipboard operation
pnpframework copied to clipboard

Get-PnPSiteTemplate -PersistMultiLanguageResources can't create resource files

Open ez1003 opened this issue 11 months ago • 4 comments

I ran the below commands to get a template file with resource files.

Connect-PnPOnline -Url "https://mytenant.sharepoint.com/sites/TemplateSite" -Interactive

Get-PnPSiteTEmplate -Out "Template.xml" -PersistBrandingFiles -IncludeAllPages -PersistMultiLanguageResources

I can have only Template.xml even though I used the option -PersistMultiLanguageResources. I could get Template.en-US.resx and Template.fr-FR.resx 10 days ago with a same command.

In the Template.xml, there's SupportedUILanguages but, there's still no resource files.

pnp:SupportedUILanguages <pnp:SupportedUILanguage LCID="1033" /> <pnp:SupportedUILanguage LCID="1036" /> </pnp:SupportedUILanguages>

The PnP PowerShell versions I tried are: Manifest 2.4.23 nightly PnP.PowerShell
Manifest 2.4.0 PnP.PowerShell

ez1003 avatar Mar 25 '24 15:03 ez1003

Same here.

DanielMisch avatar Apr 11 '24 10:04 DanielMisch

**This should be moved to PowerShell project

@KoenZomers @gautamdsheth it looks like resource generation is broken in current release. I can repro both on current release and on 2.3.61 nightly.

No resx file gets produced even though PersistMultiLanguageResources is specified. If you downgrade to lower versions (2.3.0) with exact same parameters it works fine.

AndersRask avatar Apr 15 '24 06:04 AndersRask

I opened a pull request at https://github.com/pnp/powershell/pull/4326 to fix the issue.

jackpoz avatar Sep 21 '24 17:09 jackpoz

The pull request has been merged so this issue should be solved.

jackpoz avatar Oct 02 '24 18:10 jackpoz