toHumanName

fun toHumanName(value: Enum<*>, locale: Locale = Locale.ROOT): String(source)

Convert an enum to a more human-friendly name.

This takes the enum value's name and capitalizes it, while replacing underscores with spaces, for example, MY_ENUM_VALUE ->Enum value name.