Programmatically create language variations of the Hub Mega Menu

Copper Contributor

Hi. 

I want to automatically create a structure with a hub, sites and pages, and of course at the same time create the Hub navigation. But I want the hub navigation to be in multiple languages. Anyone know how to programmatically translate a navigation node? 

I am using Office Dev PnP. I can achieve what I want by connecting with an account with English and create the Navigation Nodes, then connect with a Swedish account and translate the navigation nodes, and so on... but if I have 10 different languages, I need an account for each language, and that is very cumber some. I would be great if I could use the same account for this. 

0 Replies