Open jagopauwels opened 12 months ago
@jagopauwels - can you please try it with latest version of PnP PowerShell 2.3.0 and check ? I think we made some fixes related to this and might help if you specify LCID parameter.
I upgraded to PnP PowerShell 2.3.0 but the behavior is the same. What do you mean with "if you specify LCID parameter"? Neither Export-PnPTermGroupFromXml nor Import-PnPTermGroupFromXml have an LCID parameter.
We fixed applying labels in PnP.Framework (with https://github.com/pnp/pnpframework/pull/934) but looks like this is using some completely unrelated code.
I had to fix one small bug in Export-PnPTermGroupToXml (https://github.com/pnp/pnpframework/issues/1075) to be able to export my terms, but I couldn't reproduce the issue with the latest PnP PowerShell versions. I wonder if this has been fixed since January? Can you still reproduce it @jagopauwels ?
Reporting an Issue or Missing Feature
After using Export-PnPTermGroupFromXml, I import the group using Import-PnPTermGroupFromXml. This results in the terms having the English instead of the Dutch translation.
Expected behavior
Create the terms with the correct translation
Actual behavior
The Dutch translation contains English
Steps to reproduce behavior
My tenant is in Dutch. I create a term called "Test term NL" and give it an English translation "Test term EN"
I Export the group using Export-PnPTermGroupFromXml. The name of the term element is the English name (no idea of this is expected behavior). It does list the translations correctly.
I delete the Test termset
I import the group using Import-PnPTermGroupFromXml. This results in the term being recreated but with the English text showing up as Dutch.
What I think happens
What I think causes this bug is:
And now we have English in both lables and lose the Dutch label!
What is the version of the Cmdlet module you are running?
PnP.PowerShell 2.2.0
Which operating system/environment are you running PnP PowerShell on?
[ ] Windows
[ ] Linux
[X] MacOS
[ ] Azure Cloud Shell
[ ] Azure Functions
[ ] Other : please specify