From 5f06b9f057d9b147637ee5ca7022940454eeb64d Mon Sep 17 00:00:00 2001 From: Robin Houdmeyers Date: Wed, 25 Mar 2015 11:26:55 +0100 Subject: [PATCH] update README with how to add tranlation key to a component --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 4913448..73da9fc 100644 --- a/README.md +++ b/README.md @@ -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: