Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
rmdort authored Jan 26, 2017
1 parent 81fc996 commit 0b49d36
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 @@ -68,10 +68,10 @@ module.exports = withTranslate(App)
## Translate using Context

````
const App = (props) => {
const App = (props, context) => {
return (
<div>
{this.context.translate('hello', { name: 'John Doe' })}
{context.translate('hello', { name: 'John Doe' })}
</div>
)
}
Expand Down

0 comments on commit 0b49d36

Please sign in to comment.