You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've a Model with use HasTranslation; who has a JsonRepeater containing a translatable field.
This is the only translatable field of this model, so public $translatedAttributes = [];.
The repository for this model has use HandleJsonRepeaters, HandleTranslations; and protected $jsonRepeaters = ['propertyName'];.
The translation interface doesn't show up in this configuration. In order to make it appear, I must define a fantom/empty field in the translations table and in the public $translatedAttributes = ['fantomPropertyName'];.
Steps to reproduce
Make a Model with HasTranslation and a json property, a Repository with HandleJsonRepeaters, HandleTranslations and a migration with no field in the translations table.
Make a jsonRepeater containing a translatable field.
Expected result
I expect that the translation interface show up if one or more field in the form is translatable.
Description
I've a Model with
use HasTranslation;
who has a JsonRepeater containing a translatable field.This is the only translatable field of this model, so
public $translatedAttributes = [];
.The repository for this model has
use HandleJsonRepeaters, HandleTranslations;
andprotected $jsonRepeaters = ['propertyName'];
.The translation interface doesn't show up in this configuration. In order to make it appear, I must define a fantom/empty field in the translations table and in the
public $translatedAttributes = ['fantomPropertyName'];
.Steps to reproduce
Make a Model with HasTranslation and a json property, a Repository with HandleJsonRepeaters, HandleTranslations and a migration with no field in the translations table.
Make a jsonRepeater containing a translatable field.
Expected result
I expect that the translation interface show up if one or more field in the form is translatable.
Actual result
The translation interface doesn't show up.
Versions
Twill version: 3.3.1
Laravel version: 11.22.0
PHP version: 8.3.10
Database engine: mysql:latest
The text was updated successfully, but these errors were encountered: