App crash on validation bug fixed (#641)

This commit is contained in:
Aleksandar Pesic authored and Felix Seidl committed 2020-01-01 14:11:51 +01:00
1 parent 0627495113
commit 21d76a5245
1 file changed
+3 -2
@@ -8,10 +8,11 @@ namespace FluentTerminal.App.Services.Utilities
/// </summary>
public static class I18N
{
private static readonly ResourceLoader ResourceLoader = ResourceLoader.GetForViewIndependentUse();
public static string Translate(string resource)
{
var resourceLoader = ResourceLoader.GetForCurrentView();
return resourceLoader.GetString(resource.Replace('.', '/'));
return ResourceLoader.GetString(resource.Replace('.', '/'));
}
public static string TranslateWithFallback(string resource, string fallback)