ResourceLoaderInstance.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 using Microsoft.Windows.ApplicationModel.Resources; 5 6 namespace Microsoft.CmdPal.UI.Helpers; 7 8 internal static class ResourceLoaderInstance 9 { 10 internal static ResourceLoader ResourceLoader { get; private set; } 11 12 static ResourceLoaderInstance() 13 { 14 ResourceLoader = new ResourceLoader("resources.pri"); 15 } 16 17 internal static string GetString(string resourceId) => ResourceLoader.GetString(resourceId); 18 }