Update dictionary package data to use GUID

This commit is contained in:
Shannon
2021-06-14 15:31:12 -06:00
parent 6db0a2e27d
commit b8ac0b7471
2 changed files with 27 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
@@ -242,8 +242,11 @@ namespace Umbraco.Cms.Core.Services.Implement
private XElement Serialize(IDictionaryItem dictionaryItem)
{
var xml = new XElement("DictionaryItem", new XAttribute("Key", dictionaryItem.ItemKey));
foreach (var translation in dictionaryItem.Translations)
var xml = new XElement("DictionaryItem",
new XAttribute("Id", dictionaryItem.Key),
new XAttribute("Key", dictionaryItem.ItemKey));
foreach (IDictionaryTranslation translation in dictionaryItem.Translations)
{
xml.Add(new XElement("Value",
new XAttribute("LanguageId", translation.Language.Id),