How to change the notification close/action button text with UNUserNotification

I'd like to modify the text of 'close' and 'action' buttons for my notifications in Notification Center on MacOS Catalina.


I know it was possible with NSUserNotification

otherButtonTitle
and
actionButtonTitle
but this is now deprecated. I can't find how to do the equivalent code with the new UNUserNotificationCenter API.


I'm able to add some

UNNotificationAction
to
UNNotificationCategory
but it does not change the default close/action buttons.


Anybody knows how to do that on MacOS?