-
|
In Yii2 we used a custom translation plugin that will basically collect all missing translations via Now with Yii3 Translate we are going to do exactly the same basically and use https://github.com/yiisoft/translator-message-db to store all translations via DB so clients can freely translate all messages however they want. However currently you don't add an event dispatcher in your Service Provider cms/src/Translation/TranslationServiceProvider.php Lines 19 to 23 in 97f4e4e So the "missing translation event" never triggers It would be incredibly awesome if you could pass an event dispatcher as a parameter so I can use the event as before Thank you very much Edit: a simple class like this will basically be enough use Psr\EventDispatcher\EventDispatcherInterface;
class TmpDispatcher implements EventDispatcherInterface
{
/**
* @inheritDoc
*/
public function dispatch(object $event)
{
event($event);
}
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Added! #18952 will go out with the next alpha |
Beta Was this translation helpful? Give feedback.
Added! #18952 will go out with the next alpha