Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,12 @@ If the value has interpolation keys you can pass those values:
{{t colors colorOne colorTwo}}
```

Passing localisation key to a component template:

```handlebars
{{x-toggle on=(t 'toggle.labels.on') off=(t 'toggle.labels.off')}}
```

#### Utility

The `t` function can be used outside of templates as a utility function:
Expand Down