mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 03:07:04 +02:00
[PTRun][Unit]Support for plural units and improve alternative spellings (#19961)
* Upgrade UnitsNet package to a version that supports plural * Add support for plurals Fix metre conversion Add and update unit tests
This commit is contained in:
@@ -14,13 +14,13 @@ namespace Community.PowerToys.Run.Plugin.UnitConverter
|
||||
|
||||
public string UnitName { get; }
|
||||
|
||||
public QuantityType QuantityType { get; }
|
||||
public QuantityInfo QuantityInfo { get; }
|
||||
|
||||
public UnitConversionResult(double convertedValue, string unitName, QuantityType quantityType)
|
||||
public UnitConversionResult(double convertedValue, string unitName, QuantityInfo quantityInfo)
|
||||
{
|
||||
ConvertedValue = convertedValue;
|
||||
UnitName = unitName;
|
||||
QuantityType = quantityType;
|
||||
QuantityInfo = quantityInfo;
|
||||
}
|
||||
|
||||
public string ToString(System.IFormatProvider provider = null)
|
||||
|
||||
Reference in New Issue
Block a user