2020-04-07 10:19:14 -07:00
|
|
|
|
// 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
|
|
|
|
|
|
{
|
2020-04-07 10:19:14 -07:00
|
|
|
|
private static readonly ResourceLoader ResLoader = new ResourceLoader();
|
2020-03-11 10:43:32 -07:00
|
|
|
|
|
|
|
|
|
|
public static string GetLocalized(this string resourceKey)
|
|
|
|
|
|
{
|
2020-04-07 10:19:14 -07:00
|
|
|
|
return ResLoader.GetString(resourceKey);
|
2020-03-11 10:43:32 -07:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|