pnp / PnP-Sites-Core

Microsoft 365 Dev PnP Core component (.NET) targeted for increasing developer productivity with CSOM based solutions.
Other
415 stars 642 forks source link

How to licalize List webpart title #2623

Open nikolayyordanov opened 4 years ago

nikolayyordanov commented 4 years ago

Category

[X] Bug [ ] Enhancement

Environment

[X] Office 365 / SharePoint Online [ ] SharePoint 2016 [ ] SharePoint 2013

Expected or Desired Behavior

Trying to localize my template. For column display names it works but for the web part titles of the List web part it is not working. It is getting the string from the resource file but only from the English version. When I log in with an user with different languages set in his profile I see the localized the column names (localized the same way as the list webpart title) in the corresponding language.

Observed Behavior

If you are reporting a bug, please describe the behavior you expected to occur when performing the action. If you are making a suggestion, you can delete this section.

Steps to Reproduce

Have a clientsidepage with the following control: <pnp:CanvasControl WebPartType="List" JsonControlData="{ &quot;dataVersion&quot;: &quot;1.0&quot;, &quot;serverProcessedContent&quot;: {&quot;htmlStrings&quot;:{},&quot;searchablePlainTexts&quot;:{},&quot;imageSources&quot;:{},&quot;links&quot;:{}}, &quot;properties&quot;: {&quot;isDocumentLibrary&quot;:true,&quot;selectedListId&quot;:&quot;{listid:Bewilligungen}&quot;,&quot;listTitle&quot;:&quot;**{res:LocalizedWebPartTitle}**&quot;,&quot;selectedListUrl&quot;:&quot;{site}/Bewilligungen&quot;,&quot;webRelativeListUrl&quot;:&quot;/ListName&quot;,&quot;selectedViewId&quot;:&quot;{viewid:ListName,ViewName}&quot;,&quot;hideCommandBar&quot;:true}}" ControlId="f92bf067-bc19-489e-a556-7fe95f508720" Order="1" Column="1" />

ghost commented 4 years ago

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