App crash on validation bug fixed (#641)
This commit is contained in:
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)
|
||||
|
||||
Reference in new issue
Block a user