pnp / PnP-Provisioning-Schema

Office 365 Patterns and Practices - Remote Provisioning Schema
MIT License
161 stars 220 forks source link

Localization stopped working for StructuralNavigation #554

Open chjohan opened 3 years ago

chjohan commented 3 years ago

I'm using schema https://github.com/pnp/PnP-Provisioning-Schema/blob/master/ProvisioningSchema-2020-02.md.

Localization suddenly stopped working for LCID 1033 a week ago in structural navigation on a Communication site. Only localization values for the default site language (1044) is successfully set in structural navigation after provisioning.

Localization works everywhere else in my solution for both languages. I have "Enable pages and news to be translated into multiple languages" enabled on on my Site collection.

I get no warnings or errors while applying the template.

I have the following localizations:

<pnp:Localizations>
    <pnp:Localization LCID="1033" Name="MYPROJECT" ResourceFile="resource.en-us.resx" />
    <pnp:Localization LCID="1044" Name="MYPROJECT" ResourceFile="resource.nb-no.resx" />
</pnp:Localizations>

I have the following structural navigation:

<pnp:Navigation xmlns:pnp="http://schemas.dev.office.com/PnP/2020/02/ProvisioningSchema">
  <pnp:CurrentNavigation NavigationType="StructuralLocal">
    <pnp:StructuralNavigation RemoveExistingNodes="true">
      <pnp:NavigationNode Title="{localization:MYPROJECT:Home}" Url="{site}" />    
      <pnp:NavigationNode Title="{localization:MYPROJECT:MyPage}" Url="{site}/SitePages/MyPageaspx" />
  </pnp:StructuralNavigation>
  </pnp:CurrentNavigation>
</pnp:Navigation>
chjohan commented 3 years ago

Are anyone else experiencing this issue?

ghost commented 1 year ago

@chjohan did you ever find any workarounds? Experiencing the same issue (a year later) with 1.11.0 and 2021/03

oliver-tbs commented 9 months ago

@chjohan And here I am another year later with the exact same issue looking for an answer. :)

chjohan commented 9 months ago

I did not find a solution to the problem. Unfortunately :(

tor. 14. sep. 2023, 21:42 skrev oliver-tbs @.***>:

@chjohan https://github.com/chjohan And here I am another year later with the exact same issue looking for an answer. :)

— Reply to this email directly, view it on GitHub https://github.com/pnp/PnP-Provisioning-Schema/issues/554#issuecomment-1720039768, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB5KYEC7VA6Q4H4YS5LBI5LX2NM2BANCNFSM47DDENHQ . You are receiving this because you were mentioned.Message ID: @.***>