Comparing version 1.0.1 to 1.0.2
@@ -5,3 +5,6 @@ 'use strict'; | ||
return function* i18n(next) { | ||
const gettext = this.__.bind(this); | ||
const ctx = this; | ||
function gettext() { | ||
return ctx.__.apply(ctx, arguments); | ||
} | ||
this.locals = { | ||
@@ -8,0 +11,0 @@ gettext, |
1.0.2 / 2016-08-26 | ||
================== | ||
* fix: don't use bind (#3) | ||
1.0.1 / 2016-08-16 | ||
@@ -3,0 +8,0 @@ ================== |
{ | ||
"name": "egg-i18n", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "i18n plugin for egg", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
10807
158