mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 10:46:33 +02:00
[PTRun][UnitConverter]Use English abbreviations as fallback for meters (#22270)
This commit is contained in:
@@ -48,6 +48,12 @@ namespace Community.PowerToys.Run.Plugin.UnitConverter
|
|||||||
return enum_unit;
|
return enum_unit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var culinfo_en = new System.Globalization.CultureInfo("en-US");
|
||||||
|
if (UnitParser.Default.TryParse(unit, unitInfo.UnitType, culinfo_en, out Enum enum_unit_en))
|
||||||
|
{
|
||||||
|
return enum_unit_en;
|
||||||
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user