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
Copy file name to clipboardExpand all lines: README.md
+41
Original file line number
Diff line number
Diff line change
@@ -129,6 +129,47 @@ This plugin activates a feature in the CMS that allows Mail template files to us
129
129
***mail-notify-ru.htm** will contain the mail template in Russian.
130
130
***mail-notify-fr.htm** will contain the mail template in French.
131
131
132
+
## Extending a plugin with translatable fields
133
+
If you are extending a plugin and want the added fields in the backend to be translatable, you have to use the '[backend.form.extendFieldsBefore](https://wintercms.com/docs/events/event/backend.form.extendFieldsBefore)' and tell which fields you want to be translatable by pushing them to the array.
Models can have their attributes translated by using the `Winter.Translate.Behaviors.TranslatableModel` behavior and specifying which attributes to translate in the class.
0 commit comments