feat: paramter support object

This commit is contained in:
popomore
2015-07-15 22:25:23 +08:00
parent c0a48cd9a3
commit 757b28d170
3 changed files with 45 additions and 2 deletions

View File

@@ -97,6 +97,10 @@ __('Hello, %s. %s', 'fengmk2', 'koa rock!')
__('{0} {0} {1} {1} {1}', ['foo', 'bar'])
=>
'foo foo bar bar bar'
__('{a} {a} {b} {b} {b}', {a: 'foo', b: 'bar'})
=>
'foo foo bar bar bar'
```
## Usage on template