We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd45ee5 commit 6b88ac8Copy full SHA for 6b88ac8
1 file changed
src/unosingle/CodebreakerUno/CodebreakerUno/Helpers/ResourceExtensions.cs
@@ -1,8 +1,10 @@
1
+using Windows.ApplicationModel.Resources;
2
+
3
namespace CodeBreaker.Uno.Helpers;
4
5
internal static class ResourceExtensions
6
{
- private static readonly IStringLocalizer s_stringLocalizer = App.GetService<IStringLocalizer>();
7
+ private static readonly ResourceLoader s_resourceLoader = ResourceLoader.GetForViewIndependentUse();
8
- public static string GetLocalized(this string resourceKey) => s_stringLocalizer.GetString(resourceKey);
9
+ public static string GetLocalized(this string resourceKey) => s_resourceLoader.GetString(resourceKey);
10
}
0 commit comments