PnP ProvisioningTemplate Localization when using XMLSharePointTemplateProvider

%3CLINGO-SUB%20id%3D%22lingo-sub-47373%22%20slang%3D%22en-US%22%3EPnP%20ProvisioningTemplate%20Localization%20when%20using%20XMLSharePointTemplateProvider%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-47373%22%20slang%3D%22en-US%22%3E%3CP%3EIs%20it%20possible%20to%20localize%20provisioning%20templates%20with%20resx-file%20when%26nbsp%3BXMLSharePointTemplateProvider%20is%20used%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-47373%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EPnP%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-47400%22%20slang%3D%22en-US%22%3ERe%3A%20PnP%20ProvisioningTemplate%20Localization%20when%20using%20XMLSharePointTemplateProvider%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-47400%22%20slang%3D%22en-US%22%3E%3CP%3EWhen%20instantiating%20your%26nbsp%3B%3CSPAN%3EXMLSharePointTemplateProvider%20you%20also%20specify%20a%20container.%20Based%20on%20what%20you%20specify%20here%20a%20FileConnector%20(SharePointConnector)%20is%20instantiated%20under%20the%20hood%20pointing%20to%20the%20location%20specified%20by%20the%20container.%20If%20I%20understand%20Erwin's%20blog%20correctly%2C%20the%20location%20this%20FileConnector%20is%20pointing%20to%20is%20where%20your%20resx%20files%20should%20be%20located.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EHope%20this%20helps%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-47395%22%20slang%3D%22en-US%22%3ERe%3A%20PnP%20ProvisioningTemplate%20Localization%20when%20using%20XMLSharePointTemplateProvider%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-47395%22%20slang%3D%22en-US%22%3E%3CP%3EOh%2C%20half%20of%20my%20original%20message%20was%20cut%20off.%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20purpose%20to%20ask%20was%20that%20is%20it%20possible%20to%20just%20upload%20those%20resx-files%20to%20same%20document%20library%20with%20templates%3F%3C%2FP%3E%3CP%3EI%20just%20looked%20through%20PnP%20Core%20code%20and%20noticed%20that%20resource%20files%20are%20referenced%20as%20by%20file%20name%20and%20those%20should%20be%20located%20at%20same%20location%20where%20my%20application%20is%20running.%20Am%20I%20correct%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-47377%22%20slang%3D%22en-US%22%3ERe%3A%20PnP%20ProvisioningTemplate%20Localization%20when%20using%20XMLSharePointTemplateProvider%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-47377%22%20slang%3D%22en-US%22%3E%3CP%3EAccording%20to%20the%20following%20blog%20by%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F122%22%20target%3D%22_blank%22%3E%40Erwin%20van%20Hunen%3C%2FA%3E%26nbsp%3Bit%20should%20be%3A%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22http%3A%2F%2Fwww.erwinmcm.com%2Fmultilingual-provisioning-templates-with-the-office-365-developer-patterns-and-practices-provisioning-engine%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fwww.erwinmcm.com%2Fmultilingual-provisioning-templates-with-the-office-365-developer-patterns-and-practices-provisioning-engine%2F%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%22%3CSPAN%3EIf%20you%20use%20your%20own%20coded%20solution%20the%20engine%20will%20retrieve%20the%20resource%20files%20from%20the%20FileConnector%20you%20specified%22%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Frequent Contributor

Is it possible to localize provisioning templates with resx-file when XMLSharePointTemplateProvider is used? 

 

 

3 Replies

According to the following blog by @Erwin van Hunen it should be: 

http://www.erwinmcm.com/multilingual-provisioning-templates-with-the-office-365-developer-patterns-a...

 

"If you use your own coded solution the engine will retrieve the resource files from the FileConnector you specified"

Oh, half of my original message was cut off. 

My purpose to ask was that is it possible to just upload those resx-files to same document library with templates?

I just looked through PnP Core code and noticed that resource files are referenced as by file name and those should be located at same location where my application is running. Am I correct?

When instantiating your XMLSharePointTemplateProvider you also specify a container. Based on what you specify here a FileConnector (SharePointConnector) is instantiated under the hood pointing to the location specified by the container. If I understand Erwin's blog correctly, the location this FileConnector is pointing to is where your resx files should be located.

 

Hope this helps