Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
eartharoid committed Apr 27, 2021
1 parent dee47e9 commit 4722a34
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 @@ -37,7 +37,7 @@ i18n supports both positional and named placeholders.
{ // a locale object
"positional": {
"strings": "I like %s",
"numbers": "%d %s %d = %s"
"numbers": "%d %s %d = %d"
},
"named": {
"example1": "Hi, I'm {name} and I am from {location}",
Expand All @@ -51,7 +51,7 @@ i18n supports both positional and named placeholders.
```js
__('positional.strings', 'chocolate'); // I like chocolate

__('positional.numbers', 5, 5, 10); // 5 + 5 = 10
__('positional.numbers', 5, '+', 5, 10); // 5 + 5 = 10

__('named.example1', {
name: 'Someone',
Expand Down

0 comments on commit 4722a34

Please sign in to comment.