mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 11:46:30 +02:00
Added in generic ViewModel
This commit is contained in:
committed by
Lavius Motileng
parent
e2c7941542
commit
3f5a54f9f1
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
using Windows.ApplicationModel.Resources;
|
||||
|
||||
namespace Microsoft.PowerToys.Settings.UI.Helpers
|
||||
{
|
||||
internal static class ResourceExtensions
|
||||
{
|
||||
private static ResourceLoader _resLoader = new ResourceLoader();
|
||||
|
||||
public static string GetLocalized(this string resourceKey)
|
||||
{
|
||||
return _resLoader.GetString(resourceKey);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user