/ src / settings-ui / Settings.UI / Helpers / ResourceExtensions.cs
ResourceExtensions.cs
 1  // Copyright (c) Microsoft Corporation
 2  // The Microsoft Corporation licenses this file to you under the MIT license.
 3  // See the LICENSE file in the project root for more information.
 4  
 5  using Microsoft.Windows.ApplicationModel.Resources;
 6  
 7  namespace Microsoft.PowerToys.Settings.UI.Helpers
 8  {
 9      internal static class ResourceExtensions
10      {
11          private static readonly ResourceLoader ResLoader = ResourceLoaderInstance.ResourceLoader;
12  
13          public static string GetLocalized(this string resourceKey)
14          {
15              return ResLoader.GetString(resourceKey);
16          }
17      }
18  }