Files
PowerToys/src/settings-ui/Settings.UI/Helpers/ResourceExtensions.cs

19 lines
563 B
C#
Raw Normal View History

// Copyright (c) Microsoft Corporation
// The Microsoft Corporation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
2020-03-11 10:43:32 -07:00
using Windows.ApplicationModel.Resources;
namespace Microsoft.PowerToys.Settings.UI.Helpers
{
internal static class ResourceExtensions
{
private static readonly ResourceLoader ResLoader = new ResourceLoader();
2020-03-11 10:43:32 -07:00
public static string GetLocalized(this string resourceKey)
{
return ResLoader.GetString(resourceKey);
2020-03-11 10:43:32 -07:00
}
}
}