Translation manager with system popup

I'm trying to translate the "Action Denied" system popup.

Currently, the translation for the title ("Action Denied") works correctly. However, the message body changes depending on the action being performed and the name of the object where the action was configured.

Because of this, it is quite difficult to add every possible message variation to the Translation Manager.

Is there any way to use placeholders or wildcard entries in the Translation Manager so that similar messages can be translated dynamically?

I found some older forum posts suggesting the use of system.util.translate(), but since this is a built-in system popup, I don't think that approach can be applied in this case.

Has anyone encountered a similar requirement or found a workaround?

I'm not going to pretend that this is a particularly good pattern that we force you into, and it's something we're planning/hoping to improve in future releases, right now the way this particular popup would be translated is by injecting two specific keys:

messageDetail = `${actionDenied.eventName} ${i18n(client, 'action for component')} ${actionDenied.elementName} ${i18n(client, 'was denied.')}`;

If you add action for component and was denied. to your translation management, those substrings will get translated at runtime.

Again - not pretending this is great - obviously you cannot rearrange the message into a grammar that makes sense in every language, localize the actual component names or event names, etc. But it should work.