Showing with 12 additions and 11 deletions.
  1. +7 −7 doc/api/message/load-messages.md
  2. +5 −4 doc/api/message/message-formatter.md
@@ -46,17 +46,17 @@ Use Arrays as a convenience for multiple lines strings.
```javascript
Globalize.loadMessages({
en: {
task: [
"You have {0, plural,",
" one {one task}",
" other {{1} tasks}",
"} remaining"
longText: [
"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eligendi non",
"quis exercitationem culpa nesciunt nihil aut nostrum explicabo",
"reprehenderit optio amet ab temporibus asperiores quasi cupiditate.",
"Voluptatum ducimus voluptates voluptas?"
]
}
});
Globalize( "en" ).formatMessage( "task", 1000, Globalize( "en" ).formatNumber( 1000 ) );
"You have 1,000 tasks remaining"
Globalize( "en" ).formatMessage( "longText" );
"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eligendi non quis exercitationem culpa nesciunt nihil aut nostrum explicabo reprehenderit optio amet ab temporibus asperiores quasi cupiditate. Voluptatum ducimus voluptates voluptas?"
```

It's possible to inherit messages, for example:
@@ -16,9 +16,10 @@ String or Array containing the path of the message content, eg.

**variables** (optional)

Variables can be Objects, where each property can be referenced by name inside a message; or Arrays,
where each entry of the Array can be used inside a message, using numeric indices. When passing one
or more arguments of other types, they're converted to an Array and used as such.
Variables can be Objects, where each property can be referenced by name inside a
message; or Arrays, where each entry of the Array can be used inside a message,
using numeric indices. When passing one or more arguments of other types,
they're converted to an Array and used as such.

### Example

@@ -212,4 +213,4 @@ likeFormatter( 3 );
Read on [SlexAxton/messageFormatter.js][] for more information on regard of ICU
MessageFormat.

[SlexAxton/messageFormatter.js]: https://github.com/SlexAxton/messageformat.js/
[SlexAxton/messageFormatter.js]: https://github.com/SlexAxton/messageformat.js/#no-frills