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
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -393,11 +393,10 @@ For the given (source) content type, transforms all its entries according to the
393
393
-**`updateReferences : bool`**_(optional)_ – Flag that specifies if linking entries should be updated with target entries (default `false`). Note that this flag does not support Rich Text Fields references.
394
394
-**`removeOldEntries : bool`**_(optional)_ – Flag that specifies if source entries should be deleted (default `false`)
395
395
-**`transformEntryForLocale : function (fields, locale, {id}): object`**_(required)_ – Transformation function to be applied.
396
-
-**`useLocaleBasedPublishing: bool`**_(optional)_ - Flag to use locale based publishing for the target entries. (default: `false`)
397
-
398
396
-`fields` is an object containing each of the `from` fields. Each field will contain their current localized values (i.e. `fields == {myField: {'en-US': 'my field value'}}`)
399
397
-`locale` one of the locales in the space being transformed
400
398
-`id` id of the current entry in scope
399
+
-**`useLocaleBasedPublishing: bool`**_(optional)_ - Flag to use locale based publishing for the target entries. (default: `false`)
401
400
402
401
The return value must be an object with the same keys as specified in the `targetContentType`. Their values will be written to the respective entry fields for the current locale (i.e. `{nameField: 'myNewValue'}`). If it returns `undefined`, the values for this locale on the entry will be left untouched.
0 commit comments