WIn_RustTools/RustTools/Helpers/ResourceExtensions.cs

11 lines
304 B
C#
Raw Permalink Normal View History

2024-07-14 11:24:10 +00:00
using Microsoft.Windows.ApplicationModel.Resources;
namespace RustTools.Helpers;
public static class ResourceExtensions
{
private static readonly ResourceLoader _resourceLoader = new();
public static string GetLocalized(this string resourceKey) => _resourceLoader.GetString(resourceKey);
}