[Image Resizer]Localize units and resize mode (#31140)

* [Image Resizer] Do not use Culture when getting resources with ResourceLoader

* Localize fit and unit comboboxes

* Update font

* Address PR comments
This commit is contained in:
Stefan Markovic
2024-02-05 17:24:46 +01:00
committed by GitHub
parent 7ca476d6b0
commit ebc7860e5b
4 changed files with 32 additions and 23 deletions

View File

@@ -2,6 +2,8 @@
// The Brice Lambson licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information. Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Input;
using Common.UI;
@@ -55,6 +57,10 @@ namespace ImageResizer.ViewModels
public Settings Settings { get; }
public IEnumerable<ResizeFit> ResizeFitValues { get => Enum.GetValues(typeof(ResizeFit)).Cast<ResizeFit>(); }
public IEnumerable<ResizeUnit> ResizeUnitValues { get => Enum.GetValues(typeof(ResizeUnit)).Cast<ResizeUnit>(); }
public ICommand ResizeCommand { get; }
public ICommand CancelCommand { get; }