Skip to content

Commit 35e3c91

Browse files
authored
Update dependencies and fix formatting (#328)
1 parent b81f988 commit 35e3c91

File tree

3 files changed

+2379
-1623
lines changed

3 files changed

+2379
-1623
lines changed

module-development/core-module-file.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -424,15 +424,15 @@ module needs to be updated
424424
**Example:**
425425

426426
```js
427-
this.updateDom( {
428-
options: {
429-
speed: 1000, // animation duration
430-
animate: {
431-
in: "backInDown", // animation when module shown (after update)
432-
out: "backOutUp" // animation when module will hide (before update)
433-
}
434-
}
435-
})
427+
this.updateDom({
428+
options: {
429+
speed: 1000, // animation duration
430+
animate: {
431+
in: "backInDown", // animation when module shown (after update)
432+
out: "backOutUp", // animation when module will hide (before update)
433+
},
434+
},
435+
});
436436
```
437437

438438
### `this.sendNotification(notification, payload)`
@@ -688,7 +688,7 @@ translator to change the word order in the sentence to be translated.
688688

689689
```js
690690
const timeUntilEnd = moment(event.endDate, "x").fromNow(true);
691-
this.translate("RUNNING", { "timeUntilEnd": timeUntilEnd }); // Will return a translated string for the identifier RUNNING, replacing `{timeUntilEnd}` with the contents of the variable `timeUntilEnd` in the order that translator intended.
691+
this.translate("RUNNING", { timeUntilEnd: timeUntilEnd }); // Will return a translated string for the identifier RUNNING, replacing `{timeUntilEnd}` with the contents of the variable `timeUntilEnd` in the order that translator intended.
692692
```
693693

694694
**Example English.json file:**
@@ -717,8 +717,8 @@ did not support the word order, it is recommended to have the fallback layout.
717717
```js
718718
const timeUntilEnd = moment(event.endDate, "x").fromNow(true);
719719
this.translate("RUNNING", {
720-
"fallback": this.translate("RUNNING") + " {timeUntilEnd}",
721-
"timeUntilEnd": timeUntilEnd,
720+
fallback: this.translate("RUNNING") + " {timeUntilEnd}",
721+
timeUntilEnd: timeUntilEnd,
722722
}); // Will return a translated string for the identifier RUNNING, replacing `{timeUntilEnd}` with the contents of the variable `timeUntilEnd` in the order that translator intended. (has a fallback)
723723
```
724724

0 commit comments

Comments
 (0)