1

I have case

  1. PROD site had some pages and their translations created.
  2. We migrated the pages (using Sharegate) to the QA site.
  3. The translation connection is lost (on the QA site) and new translation pages need to be created.

Does anyone know how to reconnect the translated pages to their originals? We are using modern SPO multilingual features.

2
  • How did you create the translations? Using the variations features?
    – jimas13
    Commented Jun 28, 2021 at 22:07
  • Nope, using the translation feature in modern experience. Commented Jun 29, 2021 at 7:12

1 Answer 1

0

OK I managed to find a way of achieving it. Below process needs to be followed:

  1. Using pnp Export original page.

     $PageName =  "Education-Grant.aspx"
     $TempFile = "C:\Education-Grant.xml"
     Export-PnPClientSidePage -Force -Identity $PageName -Out $TempFile 
    
  2. Using pnp Export the translation (ie french)

     $PageName =  "fr/Education-Grant.aspx"
     $TempFile = "C:\FR_Education-Grant.xml"
     Export-PnPClientSidePage -Force -Identity $PageName -Out $TempFile 
    
  3. Update the original page export to include French page as translation. Add following properties to original page:

    PageName="Air-Transport.aspx" LCID="1033" CreateTranslations="false"
    

    Add pnp:Translations node and copy into it whole pnp:ClientSidePage node from French export. .

    Add LCID="1036" to the copied page.

  4. Delete both original and french from the source site.

  5. Apply modified pnp template.

Now the original page and its translation are reunited.

some references:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.