-
-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
I think this would be a good idea to allow properties of jsonable attributes to be translatable. This would allow you to translate specific sub-fields of a repeater to be translated. For example:
Model:
class Gallery extends Model
{
public $implement = ['@RainLab.Translate.Behaviors.TranslatableModel'];
protected $jsonable = ['images'];
public $translatable = [
'images.alt_text',
'images.description',
];
}Then in the yaml:
tabs:
fields:
images:
type: repeater
form:
fields:
image:
label: Image
type: mediafinder
mode: image
imageHeight: 150
imageWidth: 250
span: left
required: true
alt_text:
span: right
description:
type: textarea
span: fullIf someone could give me some direction on how to even get started, I might be able to get a PR for this.
kubamarkiewicz