Added localization to default sizes (#8928)

This commit is contained in:
Mykhailo Pylyp
2021-01-14 14:14:29 +02:00
committed by GitHub
parent b1a6964e18
commit 11a569b113
26 changed files with 136 additions and 80 deletions

View File

@@ -2,6 +2,7 @@
// The Microsoft Corporation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Text.Json;
using System.Text.Json.Serialization;
using Microsoft.PowerToys.Settings.UI.Library.Interfaces;
@@ -22,6 +23,12 @@ namespace Microsoft.PowerToys.Settings.UI.Library
Properties = new ImageResizerProperties();
}
public ImageResizerSettings(Func<string, string> resourceLoader)
: this()
{
Properties = new ImageResizerProperties(resourceLoader);
}
public override string ToJsonString()
{
var options = new JsonSerializerOptions