Files
wehub-resource-sync 79031da543
Spell checking / Check Spelling (push) Has been cancelled
Spell checking / Update PR (push) Has been cancelled
Publish Dev Docs Website / build (push) Failing after 1s
Publish Dev Docs Website / deploy (push) Has been skipped
Spell checking / Report (Push) (push) Has been cancelled
Spell checking / Report (PR) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:16:02 +08:00

2.4 KiB

Unit Converter Plugin

The Unit Convert plugin as the name suggests is used to perform unit conversion on the user entered query. This plugin uses a package called UnitsNet.

Image of Calculator plugin

Currently Supported Units

These are the ones that are currently enabled (though UnitsNet supports many more). They are defined in UnitHandler.cs.

InputInterpreter

  • Class which manipulates user input such that it may be interpreted correctly and thus converted.
  • Uses a regex amongst other things to do this.

UnitHandler

  • Class that does the actual conversion.
  • Supports abbreviations in user input (single, double, or none).