PnP-PowerShell icon indicating copy to clipboard operation
PnP-PowerShell copied to clipboard

Question : Is it possible to update navigation nodes for alternative languages using PnP?

Open MartinHatch opened this issue 6 years ago • 4 comments

So the navigation UI function for Modern (both Quick Launch and Top Nav menus) support multilingual values.

The "New-PnPNavigationNode" does not have any property to define the language. And being PowerShell there is no "language" setting (like I have in my browser).

Is it possible to achieve this using PowerShell? And if not, is this feature expected to be added?

Background on Multilingual capabilities

e.g.

  • Login as "English" User
  • Create Hub Nav values
  • Login as "French" User
  • Create, Remove or modify Hub nav values

Result: English users see the "English" hub nav French users see the "French" hub nav These can be both different titles, different URLs or even completely different structures!

MartinHatch avatar Mar 13 '20 14:03 MartinHatch

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

ghost avatar Mar 13 '20 14:03 ghost

I have also tried to update the menu strings using the translation files (RESX), but it has never worked for me. I ended up adding 96 strings to menus by hand, and now none of them appear in the new provisioning template I just extracted. How are we to manage localization?

jsuddsjr avatar Apr 13 '20 17:04 jsuddsjr

I am stuck on this too. Any update? I have a script that updates all hub sites in the tenant but now I can't leverage the multilingual nav functionality because it doesn't seem supported.

fbn10040 avatar Aug 22 '20 04:08 fbn10040

The only way I've found for achieving this is using RESX file within my PnP Template. Is not very user friendly working with the XML and RESX file especially with navigation but it works. Otherwise, you may try to create two provisioning accounts (one for each language) and then do the PnP-Connect with the user then update your navigation and disconnect then connect back with the other provisioning account. Cheers.

LogicElite avatar Oct 16 '20 01:10 LogicElite