mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01: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;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user