I'm implementing Cakephp 3 Translate behavior in my website but when I'm creating when the current language is not the default language all the other languages including the original entity are empty.
For example the available languages are: English (Default language), Dutch, French and Polish. When my website is switched to French and I create a entity the entity is empty when I switch to my default language. This is very confusing because my CMS now contains several empty entities
Does anyone have a solution for this?
I found a solution. I've created a custom TranslateBehavior which extends the default TranslateBehavior.
In my custom TranslateBehavior i've overwritten the afterSave event and filled the original entity with my translation data if the original entity was empty: