For notifications, is it possible to translate args in arrays recursively? For example:
Code: Select all
$this->notifyAllPlayers('xxx', clienttranslate('You have the words ${words}'), [
'i18n' => ['words'],
'words' => [
[
clienttranslate('a'),
clienttranslate('b'),
],
[
clienttranslate('c'),
clienttranslate('d'),
clienttranslate('e'),
],
],
]);