Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

[BUG] Import-PnPTermGroupFromXml creates terms with incorrect translations

Abierto
#3,603 5 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
49/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
csharp, powershell
Área
localization

Línea de trabajo

Comience con los cmdlets Import-PnPTermGroupFromXml y Export-PnPTermGroupFromXml, reproduzca el problema utilizando las traducciones de términos neerlandesa e inglesa proporcionadas e inspeccione cómo se procesan XML Name y las etiquetas de traducción. Se considera terminado cuando al importar el grupo exportado se conserva la etiqueta neerlandesa como neerlandesa, en lugar de mostrar el texto inglés para ambas etiquetas.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug
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
After import

Steps to reproduce behavior
  1. My tenant is in Dutch. I create a term called "Test term NL" and give it an English translation "Test term EN"
    Original

  2. 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.
    xml

  3. I delete the Test termset

  4. I import the group using Import-PnPTermGroupFromXml. This results in the term being recreated but with the English text showing up as Dutch.
    After import

What I think happens

What I think causes this bug is:

  1. The term doesn't exist so it is created. It creates it with the value in the "Name" attribute that is in English, but since the tenant is in Dutch it is now wrongly labeled as Dutch.
  2. It goes on to create the lables, the fist one is English. This lable is new so it is created.
  3. Next is the Dutch label, this label already exists so it is skipped...

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

  • MacOS

  • Azure Cloud Shell

  • Azure Functions

  • Other : please specify

Lenguaje dominante
C#
Estrellas
904
Forks
407
Merge medio
2 d 9 h
PR fusionados (30 d)
10

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de pnp/powershell

Todos los issues de pnp/powershell

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.