Skip to content

Commit

Permalink
Fix type value in formatted-parts example
Browse files Browse the repository at this point in the history
  • Loading branch information
eemeli committed Dec 18, 2023
1 parent b93097c commit eca10b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ mf1.format(); // 'Hello!'
const mf2 = new Intl.MessageFormat('Hello {$place}!', 'en');
const greet = mf.formatToParts({ place: 'world' });
/* [
{ type: "literal", value: "Hello " },
{ type: "text", value: "Hello " },
{ type: 'string', source: '$place', value: 'world' },
{ type: "literal", value: "!" }
{ type: "text", value: "!" }
] */
```

Expand Down

0 comments on commit eca10b1

Please sign in to comment.