public static XElement LocalizeValue(this XElement element, string name, LocalGameClientLocalization localization, bool writeKey = false)
        {
            return(element.Select(name,
                                  e =>
            {
                if (writeKey)
                {
                    e.SetAttributeValue("key", e.Value);
                }

                e.Value = localization.GetLocalizedString(e.Value);
            }));
        }
 public static XElement LocalizeValue(this XElement element, string name, LocalGameClientLocalization localization)
 {
     return(element.Select(name, e => e.Value = localization.GetLocalizedString(e.Value)));
 }