using System; using System.Globalization; using PropertyModels.Localilzation; using StabilityMatrix.Avalonia.Languages; namespace StabilityMatrix.Avalonia.Controls; internal class PropertyGridCultureData : ICultureData { /// public bool Reload() => false; /// public CultureInfo Culture => Cultures.Current ?? Cultures.Default; /// public Uri Path => new(""); /// public string this[string key] { get { if (Resources.ResourceManager.GetString(key) is { } result) { return result; } return key; } } /// public bool IsLoaded => true; }