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
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -288,9 +288,10 @@ The transform function is expected to return an object with the desired target f
288
288
- **`transformEntryForLocale : function (fields, locale, {id}): object`** _(required)_ – Transformation function to be applied.
289
289
- `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'}}`)
290
290
- `locale` one of the locales in the space being transformed
291
-
- `id` id of the current entry in scope
291
+
- `id` id of the current entry in scope
292
292
The return value must be an object with the same keys as specified in `to`. Their values will be written to the respective entry fields for the current locale (i.e. `{nameField:'myNewValue'}`). If it returns `undefined`, this the values for this locale on the entry will be left untouched.
293
293
- **`shouldPublish : bool |'preserve'`** _(optional)_ – Flag that specifies publishing of target entries, `preserve` will keep current states of the source entries (default `'preserve'`)
294
+
- **`useLocaleBasedPublishing: bool`** _(optional)_ - Flag to use locale based publishing for the target entries. (default: `false`)
/** (optional) – If true, the transformed entries will be published. If false, they will remain in draft state. When the value is set to "preserve" items will be published only if the original entry was published as well (default true) */
494
494
shouldPublish?: boolean|'preserve'
495
+
/** (optional) – If true, the transformed entries will be published with locale based publishing. If false, they will remain in draft state. When the value is set to "preserve" items will be published only if the original entry was published in this locale as well (default false) */
0 commit comments