Skip to content

Commit

Permalink
Bump 2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
fundon committed Jan 7, 2016
1 parent 3bb7acb commit de84043
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 5 additions & 0 deletions History.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@

2.0.1 / 2016-01-08
==================

* use `ctx.state.i18n = i18n` instead of `Object.defineProperty(...')`

2.0.0 / 2016-01-08
==================

Expand Down
4 changes: 1 addition & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,8 @@ function ial(app, opts) {
i18n.request = this.request

// merge into ctx.state
this.state.i18n = i18n
registerMethods(this.state, i18n)
Object.defineProperty(this.state, 'i18n', {
value: i18n
})

debug('app.ctx.i18n %j', i18n)
return i18n
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "koa-i18n",
"version": "2.0.0",
"version": "2.0.1",
"description": "Lightweight simple translation middleware for koa, based on i18n-2",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit de84043

Please sign in to comment.