Forum Discussion

Beat Grüring's avatar
Beat Grüring
Brass Contributor
Oct 11, 2019

How to retrieve nodes in another language with Get-PnPNavigationNode in PnP PowerShell?

Get-PnPNavigationNode returns the node titles in the default language of the site (I guess).


Is there a way to retrieve the nodes translated in another language?

 

I could not find a way to change the language on the connection or context.
Can we somehow add the "accept-language" header to the request sent to the REST services?

I assume this would help to retrieve the values for the corresponding language.

4 Replies

  • mrehmat's avatar
    mrehmat
    Brass Contributor

    Beat Grüring very interesting use case ... May be use https://docs.microsoft.com/en-us/azure/cognitive-services/translator/translator-info-overview?   

    • Beat Grüring's avatar
      Beat Grüring
      Brass Contributor
      No, the nodes are already there and also translated. I am looking for a way to retrieve them via PowerShell.

Resources