Skip to content

Commit

Permalink
docs(README): some docs for json keys
Browse files Browse the repository at this point in the history
  • Loading branch information
ocombe committed Aug 13, 2016
1 parent e24bfa4 commit 8f9763b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,17 @@ translate.setTranslation('en', {
});
```

The `TranslateParser` is able to understand json keys, which means that you can organize your translations like that:
```json
{
"HOME": {
"HELLO": "hello {{value}}"
}
}
```

And then access them using the key `HOME.HELLO`.

#### 4. Use the service or the pipe:

You can use the `TranslateService` to get new translations like this:
Expand Down

0 comments on commit 8f9763b

Please sign in to comment.