ENUM Localized value

Hi,

How do I get a localized message of the ENUM value through code.

For example I have TaskType.ACTION. I want to retrieve the localized message of this from code.

I’m using Cuba 7.2.

I tried messageBundle.getMessage, it is not giving me proper result.

Thanks & Regards,
Hari

Hi,
There is a method in the Messages bean:
com.haulmont.cuba.core.global.Messages#getMessage(java.lang.Enum)

Thanks