diff --git a/index.js b/index.js index 739d3c5..7b09d57 100644 --- a/index.js +++ b/index.js @@ -91,13 +91,15 @@ function ial(app, opts) { debug('app.ctx.i18n %j', i18n) return i18n - } + }, + configurable: true }) Object.defineProperty(app.request, 'i18n', { get: function () { return this.ctx.i18n - } + }, + configurable: true }) return function i18nMiddleware(ctx, next) {