How not to get the untranslated recordings?


#1

Hello, I want to set up the translation on my site. When I create a new record in the default language, I can see it by changing the language. I would like registrations that have not been translated not to be retrieved during a request. Is it possible ?!

Thanks a lot


#2

I found by adding this in my queries:

$this->find (‘translations’, [‘filterByCurrentLocale’ => true])

Why is it not indicated in the documentation?

Better yet, it was enough to define “onlyTranslated” at true in Behavior’s configuration. It would be nice to indicate it in the documentation