Skip to content

Commit

Permalink
Update README.md (#1135)
Browse files Browse the repository at this point in the history
Fix formatting which makes reading the doc confusing.
  • Loading branch information
panzacoder authored Oct 25, 2022
1 parent c6aa4b6 commit e0268f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ The transform function is expected to return an object with the desired target f
- **`transformEntryForLocale : function (fields, locale): object`** _(required)_ – Transformation function to be applied.
- `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'}}`)
- `locale` one of the locales in the space being transformed
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.
- **`shouldPublish : bool | 'preserve'`** _(optional)_ – Flag that specifies publishing of target entries, `preserve` will keep current states of the source entries (default `'preserve'`)
Expand Down

0 comments on commit e0268f2

Please sign in to comment.