protected static function getLocalizedDescription($value): ?string
    {
        if (static::isLocalizable())
        {
            $localizedStringKey = static::getLocalizationKey() . '.' . $value;

            if (Lang::has($localizedStringKey))
            {
                return __($localizedStringKey);
            }
        }

        return null;
    }
protected static function getLocalizedDescription($value): ?string
    {
        if (static::isLocalizable())
        {
            $localizedStringKey = static::getLocalizationKey() . '.' . $value;

            if (Lang::has($localizedStringKey))
            {
                return __($localizedStringKey);
            }
        }

        return null;
    }
protected static function getLocalizedDescription ( $ value ) : ? string { if ( static :: isLocalizable ( ) ) { $ localizedStringKey = static :: getLocalizationKey ( ) . '.' . $ value ; if ( Lang :: has ( $ localizedStringKey ) ) { return __ ( $ localizedStringKey ) ; } } return null ; }
Get the localized description if localization is enabled
for the enum and if the key exists in the lang file

@param int|string $value
@return string
Get the localized description if localization is enabled for the enum and if the key exists in the lang file